/** * jobs.js * based on fw_menu.js, which was based on menu.js * by gary smith, July 1997 * Copyright (c) 1997-1999 Netscape Communications Corp. * * Netscape grants you a royalty free license to use or modify this software provided that this copyright notice  * appears on all copies.  This software is provided "AS IS," without a warranty of any kind. */<SCRIPT type="text/javascript" language="JavaScript"><!--// Use this function to retrieve a cookie.function getCookie(name){var cname = name + "=";               var dc = document.cookie;                 if (dc.length > 0) {                  begin = dc.indexOf(cname);               if (begin != -1) {                   begin += cname.length;               end = dc.indexOf(";", begin);            if (end == -1) end = dc.length;            return unescape(dc.substring(begin, end));        }     }return null;}// Use this function to save a cookie.function setCookie(name, value, expires) {document.cookie = name + "=" + escape(value) + "; path=/" +((expires == null) ? "" : "; expires=" + expires.toGMTString());}// Use this function to delete a cookie.function delCookie(name) {document.cookie = name + "=; expires=Thu, 01-Jan-70 00:00:01 GMT" +  "; path=/";}// Function to retrieve form element's value.function getValue(element) {var value = getCookie(element.name);    if (value != null) element.value = value;}// Function to save form element's value.function setValue(element) {setCookie(element.name, element.value, exp);}var exp = new Date();                                   exp.setTime(exp.getTime() + (1000 * 60 * 60 * 24 * 31));function checkFields(){var result;result=checkEmail(document.forms[0].Email.value)if(result==true){	alert('Please Enter Valid Email Address');	document.forms[0].Email.focus();	return false;}return true;}function checkEmail(s){if(isEmail(s)){	return true;}}function isEmpty(s){	return((s == null) || (s.length == 0))}function isWhiteSpace(s){	if(isEmpty(s)) return true;	for(var i = 0; i < s.length; i++) 	{		var c = s.charAt(i);           	if((c != ' ') && (c != '\n') && (c != '\t')) return false;	} 	return true;}function isEmail(s){if(isWhiteSpace(s)) {	return true;}var i = 1;var sLength = s.length;while((i < sLength) && (s.charAt(i) != "@")){ 	i++;}if((i >= sLength) || (s.charAt(i) != "@")){	return true;}else{	i += 2;}while((i < sLength) && (s.charAt(i) != ".")){	i++;}if((i>=sLength - 1) || (s.charAt(i) != ".")){	return true;}else{	return false;}}//--></SCRIPT>
