function openWin(theURL,W,H,X,Y, wname) {
	if(X==null)X=Math.ceil((window.screen.width-W)/ 2)
	if(Y==null)Y=Math.ceil((window.screen.height-H)/ 2)
	var s=",scrollbars=no, width="+W+",height="+H;
	if(wname=="announce"){s=",scrollbars=yes,width="+W+",height="+H;}

	var CWIN=window.open(theURL,wname,"toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no"+s,true);

	CWIN.moveTo(Math.ceil(X),Math.ceil(Y))
}  

 function checkLocation(){ 
 	if (!document.location.area.value) {
		alert("Please select location!");
		document.location.area.focus();
		return false;		
	}else{
		return true;
	}
  } 
  
 function checkLogin(){ 
 
 	var retval;
	retval = false;
		
 	if (document.login.user_id.value=='') {
		alert("Please include your id!");
		document.login.user_id.focus();
	}else if (document.login.password.value=='') {
		alert("Please include your password!");
		document.login.password.focus();
	}else{
		retval = true;
	}
	
	return retval ; 
  } 
