	//popUp window for news
	function popUp(URL) {
	eval("page" + "popnews" + " = window.open(URL, 'newswin', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=310,height=340,left =180,top = 120');");
	}

	function popUp1(URL) {
	eval("page" + "popnews" + " = window.open(URL, 'newswin', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=310,height=365,left =180,top = 120');");
	}

	function popUp2(URL) {
	eval("page" + "popnews" + " = window.open(URL, 'newswin', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=312,height=200,left =50,top = 20');");
	}
	
	function popUp3(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=400,left = 312,top = 184');");
	}
	
	//Email Validation
	function isEmailAddr(email)
	{
	  var result = false
	  var theStr = new String(email)
	  var index = theStr.indexOf("@");
	  if (index > 0)
	  {
	    var pindex = theStr.indexOf(".",index);
	    if ((pindex > index+1) && (theStr.length > pindex+1))
		result = true;
	  }
	  return result;
	}
	
	function FormValidator(theForm)
	{
	
	  if (theForm.email.value == "")
	  {
	    alert("Please enter a value for the \"email\" field.");
	    theForm.email.focus();
	    return (false);
	  }
	
	  if (!isEmailAddr(theForm.email.value))
	  {
	    alert("Please enter a complete email address in the form: yourname@yourdomain.com");
	    theForm.email.focus();
	    return (false);
	  }
	   
	  if (theForm.email.value.length < 3)
	  {
	    alert("Please enter at least 3 characters in the \"email\" field.");
	    theForm.email.focus();
	    return (false);
	  }
	  return (true);
	}
	