<!--
	function popWindow2(popupURL)
	{// open the popup window
		var macAgent = (navigator.userAgent.indexOf('Mac')) != -1 ? true : false;
		
		var nsX = (navigator.appName == "Netscape")? true:false;
		var ns4 = (document.layers)? true:false;
		var ieX = (navigator.appName == "Microsoft Internet Explorer")? true:false;
		var ie4 = (document.all)? true:false;
		if (nsX)
			{
	    	var popup = window.open(popupURL,"_blank",'toolbar=no,location=0,directories=0,status=no,menubar=no,scrollbars=yes,resizable=yes,height=430,width=400,screenX=20,screenY=35');
			}
		else
			{
	    	var popup = window.open(popupURL,"_blank",'toolbar=no,location=0,directories=0,status=no,menubar=no,scrollbars=yes,resizable=yes,height=430,width=400,top=20,left=35');
			}
}
function isEmail (s)
{   

    // there must be >= 1 character before @, so we
    // start looking at character position 1 
    // (i.e. second character)

	
    var i = 1;
    var sLength = s.length;

    // look for @
    while ((i < sLength) && (s.charAt(i) != "@"))
    { i++
    }

    if ((i >= sLength) || (s.charAt(i) != "@")) return false;
    else i += 2;

    // look for .
    while ((i < sLength) && (s.charAt(i) != "."))
    { i++
    }

    // there must be at least one character after the .
    if ((i >= sLength - 1) || (s.charAt(i) != ".")) return false;
    else return true;

}

	var flag = 0;

	function check_form_email(theForm) {
		flag = 0;

		if (document.form_email.EmployerLogin.value == "") flag = true;
		
		if (flag == 1) {
			alert("ATTENTION\n\n" +
				"You must enter your login.");
				return;
		}
		document.form_email.submit();
	}

	function check_form(theForm) {
		flag = 0;

		if (document.form_submit.loginname.value == "") flag = true;
		if (document.form_submit.password.value == "") flag = true;
		
		if (flag == 1) {
			alert("ATTENTION\n\n" +
				"You must enter all of the required fields.");
				return;
		}
		document.form_submit.submit();
	}
	

// -->
