// to write in the day and date on the page.var now = new Date();var theYear  = now.getFullYear();function writeYear() { document.write(theYear); }<!--function $(el) {	return document.getElementById(el);}function quickCheckForm() {	var errMsg = "";	var f = document.forms[0];	for (i=0; i<f.length-1; i++) {		if ($("label_"+f[i].id).innerHTML.indexOf("*") > -1) {			if (f[i].value == "") {				$("label_"+f[i].id).style.color = "red";				$(f[i].id).style.background = "pink";				errMsg += "\t* " + f[i].id + " \n"; 			}			else {				$("label_"+f[i].id).style.color = "";				$(f[i].id).style.background = "white";			}		}	}	if (errMsg != "") {		errMsg = "Please correct the following fields:\n\n" + errMsg;		alert(errMsg);		return false;	}	return true;}function numOnly(e) {	e = (e) ? e : window.event;var charCode = (e.which)? e.which : e.keyCode;//		alert(charCode);if ((charCode >47 && charCode < 58)/////////////////////////////|| charCode == 13				// return/enter|| charCode == 63272		// backspace|| charCode == 46				// delete|| charCode == 8				// delete|| charCode == 9				// allow tab to next fld|| charCode == 0				// allow tab to prev fld|| charCode == 16				// allow shift (shift/tab)|| charCode == 144			// allow use of numlock|| (charCode > 36 && charCode < 41) // 37-40, arrow keys|| (charCode > 63231 && charCode < 63236)// more arrow keys) {return true;}else {		alert("This field accepts numbers only.");		return false;		}}function lettersOnly(evt) {	evt = (evt) ? evt : event;	var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0));	if (		(!(charCode > 36 && charCode < 41)) 				 // 37-40, arrow keys		&& (!(charCode > 63231 && charCode < 63236)) // more arrow keys		&& charCode != 13				// return/enter		&& charCode != 63272		// backspace		&& charCode != 46				// delete		&& charCode != 8				// delete		&& charCode != 144			// allow use of numlock		&& charCode != 189			// allow use of dash (-)		&& charCode != 222			// this is not apostrophe (') , no idea what it is		&& charCode != 39				// allow tab to apostrophe (')		&& charCode != 9				// allow tab to next fld		&& charCode != 67				// allow use of circumflex		&& charCode != 31		&& charCode != 32				// space		&& charCode != 45				// ins		&& charCode > 31		&& (charCode < 65 || charCode > 90)		// A-Z		&& (charCode < 97 || charCode > 122)	) {		alert("This field accepts letters only.");		return false;	}	return true;}function isNum(num,L) {  var validChars ="0123456789";  var num = num.toString();  if ((num.length != L) && (!(L == null || L == "")))    {    return false;    } else {    for (var j = 0; j < num.length; j++) {      var oneChar = num.charAt(j);      if (validChars.indexOf(oneChar) == -1)         return false;    }  }   return true;}function isEmailValid(email) {  var pattern = /^[^@]+@([-\w]+\.)+[A-Za-z]{2,4}$/;  return ((pattern.exec(email) != null) ? true : false);}