<!--
// example link
//<a href=\"Javascript:openWindow('$siteroot/prodbrowser.php?pid=$addphotos[id]&sid=$giftprods[sid]','prodbrowser',640,480)\">

function openWindow(theURL,winName,newWindowW,newWindowH)
{
	l = (screen.availWidth-10 - newWindowW) / 2;
	t = (screen.availHeight-20 - newWindowH) / 2;
	
	features = "width="+newWindowW+",height="+newWindowH+",left="+l+",top="+t;
	features += ",screenX="+l+",screenY="+t;
	features += ",scrollbars=yes,resizable=yes,location=0";
	features += ",menubar=0,toolbar=0,titlebar=0,status=0";
	
	var newWindow = window.open(theURL,winName,features);
	newWindow.focus();
}



function checkForm()
{	
	submitOK="True";
	
	if (document.loginform.loginid.value==""){
		alert('Please enter your Login ID.');
		document.loginform.loginid.focus();
		submitOK="False";
	}	
		
	if (submitOK=="False"){
 		return false;
	}
	
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//-->