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


var gotIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;	
var gotNS = (navigator.appName == 'Netscape') ? true : false;

function popWin( url, name, width, height, scroller ) { 

	if (gotIE) {
	var left = (screen.Width/2) - width/2;
	var top = (screen.Height/2) - height/2;
	} else if (gotNS) {
	var left = (screen.availWidth/2) - width/2;
	var top = (screen.availHeight/2) - height/2;
	} else {
	var left = (screen.Width/2) - width/2;
	var top = (screen.Height/2) - height/2;
	}

var outStr = 'left='+left+',top='+top+',height=' + height + ',width=' + width; 

	if (scroller == true) {
		 outStr = outStr + ',menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=1,resizable=no';
	 } else {
		 outStr = outStr + ',menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=no,resizable=no';
	 } 

window.open(url, name, outStr);

}


function popWin2( url, name, WIDTH, height, scroller ) { var outStr = 'height=' + height + ',WIDTH=' + WIDTH; if (scroller != 'true') { outStr = outStr + ',menubar=yes,toolbar=yes,location=no,directories=no,status=no,scrollbars=yes,resizable=yes'; } else { outStr = outStr + ',menubar=yes,toolbar=yes,location=no,directories=no,status=no,scrollbars=yes,resizable=yes'; } window.open(url, name, outStr); }


function badlogin(){
alert("Incorrect Username/Password.  Please try again.");
document.memlogin.user.focus();
document.memlogin.user.select();
}

function needlogin(){
alert("Please login to access the Members Only area.");
document.memlogin.user.focus();
document.memlogin.user.select();
}


function checklogin(form)
{

if (! form.user.value){
alert("Please Type In Your User Name");
form.user.focus();
form.user.select();
return false;
}

if (! form.pass.value){
alert("Please Type In Your Password");
form.pass.focus();
form.pass.select();
return false;
}

return true;
}
