function showWindow(url,name,width,height,scrollbarvalue)
{
	var options = "width="+width+",height="+height+",status=no,toolbar=no,directories=no,menubar=no,location=no,scrollbars="+scrollbarvalue+",resizable=no,left=0,top=0";
	var hwnd = open(url, name, options);
}

function checkEmail(obj)
{
		var emailaddress = obj.elements["email"].value;
		if (emailaddress.length ==0)
		{
			alert("Sorry, but you need to enter a valid email address");
	                  return false;
		}
               var emailPat=/^(.+)@(.+)$/;
               var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]";
               var validChars="\[^\\s" + specialChars + "\]";
               var quotedUser="(\"[^\"]*\")";
               var ipDomainPat=/^(\d{1,3})[.](\d{1,3})[.](\d{1,3})[.](\d{1,3})$/;
               var atom=validChars + '+';
               var word="(" + atom + "|" + quotedUser + ")";
               var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
               var domainPat=new RegExp("^" + atom + "(\\." + atom + ")*$");
               var matchArray=emailaddress.match(emailPat);
               if (matchArray == null)
                  {
			alert("Sorry, but you need to enter a valid email address");
	                  return false;
		}
               var user=matchArray[1];
               var domain=matchArray[2];
               if (user.match(userPat) == null)
                   {
			alert("Sorry, but you need to enter a valid email address");
	                  return false;
		}
               var IPArray = domain.match(ipDomainPat);
               if (IPArray != null) 
		{
                   for (var i = 1; i <= 4; i++) 
			{
                	      if (IPArray[i] > 255)
                        	 {
					alert("Sorry, but you need to enter a valid email address");
	                		  return false;
				}
                   	}
                   return true;
               }
               var domainArray=domain.match(domainPat);
               if (domainArray == null)
                   {
			alert("Sorry, but you need to enter a valid email address");
	                  return false;
		}
               var atomPat=new RegExp(atom,"g");
               var domArr=domain.match(atomPat);
               var len=domArr.length;
               if (domArr[domArr.length-1].length < 2 || domArr[domArr.length-1].length > 4)
                {
			alert("Sorry, but you need to enter a valid email address");
	                  return false;
		}
               if (len < 2)
                  {
			alert("Sorry, but you need to enter a valid email address");
	                  return false;
		}
               return true;
}





