function popUp1(URL) {
	newWindow=window.open(URL, '', 'menubar,status,scrollbars,width=656,height=470,left=100,top=100');
	if (window.focus) {
		newWindow.focus();
	}
}

function popUpAdjustable(URL,strWidth,strHeight) {
	newWindow=window.open(URL, '', 'menubar,status,scrollbars,resizable,status,width=' + strWidth + ',height=' + strHeight);
	if (window.focus) {
		newWindow.focus();
	}
}	
	 
function reversePopUp1(URL) {
	window.opener.location.href = URL;
	window.close();
};

function popUpSubscribe(URL) {
	//alert(URL)
	newWindow=window.open(URL, '', 'menubar,status,scrollbars,width=810,height=500,left=100,top=100');
	  if (window.focus) {
	  
		newWindow.focus();
	   }
	}


function getKeyEvent (evt) {
var isNav, isIE
if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName == "Netscape") {
		isNav = true
	} else {
		isIE = true
	}
}
if (isNav) {
	whatButt = evt.which
} else if (isIE) {
	return false
}
		
if (whatButt == 13) {
	document.forms[0].submit()
}

return true;
}

function popUper(URL) {

newWindow=window.open(URL, '', 'menubar,toolbar,location,status,scrollbars,resizable,width=656,height=480,left=100,top=100');
if (window.focus) {
	newWindow.focus();
	}
}


function popUppr(URL) {
	
 newWindow=window.open(URL, '', 'menubar,toolbar,status,scrollbars,width=656,height=480,left=100,top=100');
if (window.focus) {
		newWindow.focus();
	}
}


function popUpvr(URL) {
	
 newWindow=window.open(URL, '', 'menubar,status,scrollbars,width=656,height=480,left=100,top=100');
if (window.focus) {
		newWindow.focus();
	}

}


function openNew(URL) {

 newWindow=window.open(URL,'','toolbar=yes,location=0,directories=0,status=0,scrollbars=yes,copyhistory=0,width=585,height=495,top=100,left=100,resizable=yes');
if (window.focus) {
		newWindow.focus();
	}

}


function popMP(URL) {

newWindow=window.open(URL, '', 'menubar,toolbar,location,status,scrollbars,width=400,height=255,left=100,top=100');
if (window.focus) {
	newWindow.focus();
	}
}

function validateRadio(radio, msg)
{
	for (i = 0; i < radio.length; ++i)
		if (radio[i].checked) return true;
	alert(msg);
	return false;
}


function validateCheckBox(check, msg)
{
	if (check.checked) return true;
	alert(msg);
	return false;
}
function popupUserProfile(URL) {
	newWindow=window.open(URL,"","toolbar=0,location=0,directories=0,status=0,scrollbars=yes,copyhistory=0,width=655,height=515,top=100,left=100");
	newWindow.focus();
}
