// JavaScript Document

function openwindowlink(URL) {
	newwin = window.open(URL,"windowname"," height=500,width=650,status,menubar,toolbar,location,locationbar, personalbar,scrollbars,resizable,'screenX=76', left=76");
}
function openshowcase(URL) {
	newwin2 = window.open(URL,"windowname"," height=500,width=650,status,menubar,toolbar,location,locationbar, personalbar=no,scrollbars,resizable,'screenX=76', left=76");
}
function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName, "height=550,width=780,status,location=no,locationbar=no,scrollbars=no,resizable,'screenX=5', left=5");
}
function openWBTWindow(URL) //Script to open the file in a new window
{ 
	newWin= open(URL, "displayWindow", "resizable=no,status=no,scrollbars=no,toolbar=no,menubar=no,height=545,width =790,top=0,left=0");
}
function openImageWindow(URL) //Script to open the file in a new window
{ 
	newWin= open(URL, "displayWindow", "resizable=yes,status=no,scrollbars=yes,toolbar=no,menubar=no,height=450,width=450,top=0,left=0");
}
function openProductPhotoWindow(URL, width, height) //Script to open the file in a new window
{ 
	width = width + 15;
	height = height + 20;
	conftext = 'resizable=yes,status=no,scrollbars=no,toolbar=no,menubar=no,height=' + height +',width=' + width + ',top=20,left=20';
	newWin= open(URL, "displayWindow", conftext);
}
<!--

	// ##################################################
	// Variables
	// ##################################################
	var w = screen.availWidth;
	var h = screen.availHeight;
	var topPos = Math.round((h-400)/2);
	var leftPos = Math.round((w-600)/2);
	var topPos2 = Math.round((h-250)/2);
	var leftPos2 = Math.round((w-280)/2);
	var topPos3 = Math.round((h-410)/2);
	var leftPos3 = Math.round((w-400)/2);
	
	
	// ##################################################
	// Open Popup Window Function
	// ##################################################
	function openPopup( windowURL )
	{ 
		return window.open( windowURL, 'InfoCenter', 'width=280,height=250,screenX='+leftPos2+',screenY='+topPos2+',top='+topPos2+',left='+leftPos2+',toolbar=0,directories=0,status=1,menuBar=0,scrollBars=0,resizable=0' ) ; 
	}
	
	
	// ##################################################
	// Open Lens Estimator Window Function
	// ##################################################	
	function openLensEstimator( windowURL )
	{ 
		return window.open( windowURL, 'LensEstimator', 'width=620,height=400,screenX='+topPos+',screenY='+leftPos+',top='+topPos+',left='+leftPos+',toolbar=0,directories=0,status=1,menuBar=0,scrollBars=0,resizable=0' ) ; 
	}

	// ##################################################
	// Open Voltage Drop Calculator Window Function
	// ##################################################	
	function openVoltageDrop( windowURL )
	{ 
		return window.open( windowURL, 'VoltageDrop', 'width=400,height=410,screenX='+topPos3+',screenY='+leftPos3+',top='+topPos3+',left='+leftPos3+',toolbar=0,directories=0,status=1,menuBar=0,scrollBars=0,resizable=0' ) ; 
	}


	// ##################################################
	// Set Focus on the Username
	// ##################################################
	function SetFocus()
	{
		document.Login.username.focus();
		return;
	}

// -->
