var popWin
function img1(URL, NAME)
	   {
	   popWin = window.open("popup/image1.html","img1",
	   "toolbar=0,location=0,menubar=0,scrollbars=1," +
	   "resizable=0,width=400,height=405");
	   popWin.focus();
	   }
function checkrequired(which) {
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,8)=="required") {
if (((tempobj.type=="text"||tempobj.type=="password")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
         }
      }
   }
}
if (!pass) {
shortFieldName=tempobj.name.substring(8,30).toUpperCase();
alert("Please make sure the "+shortFieldName+" field was properly completed.");
return false;
}
else
return true;
}

function chkemail()
{    mess = "";
if (document.form1.emailforget.value=="")
{
		mess = mess + "E-mail is required\n";
}
else
{
	var emailpat = /^(\".*\"|[A-Za-z0-9]\w*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z0-9]\w*(\.[A-Za-z0-9]\w*)+)$/;
	var matcharray = window.document.form1.emailforget.value.match(emailpat);
	if (matcharray == null)
	{
		mess = mess + "Invalid email\n";
	}
}
if (mess!="")
	{
		alert(mess);
		return false;
	}
else
	{
		return true;
	}
}


