//**** Script used for pop-ups ****//
var newwindow;
function popUp(strURL,strType,strWidth,strHeight) 
{
	var strOptions="";
	strOptions="scrollbars,resizable,menubar,width="+strWidth+",height="+strHeight;
		newwindow=window.open(strURL, strType, strOptions);
	if (window.focus) {newwindow.focus()}
}
function popUp2(strURL,strType,strWidth,strHeight) {
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
/* if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth; */
if (strType=="elastic") strOptions="toolbar,scrollbars,menubar,resizable,width="+strWidth+",height="+strHeight;
if (strType=="my_custom_window") strOptions="scrollbars,resizable,height="+strHeight+",width="+strWidth;
window.open(strURL, 'newWin', strOptions);
}


/*
printit function
This script is written by Eric (Webcrawl@usa.net)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
function printit()
	{  
	if (window.print)
		{
		window.print() ;  
		}
	else
		{
		var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
		document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
		WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
		}
	}
// End printit Function

