function preload() {
	if (!document.images) {  
		return;  
	}  
	var ar = new Array();  
	var arguments = preload.arguments;  
	for (var i=0; i<arguments.length; i++) {  
		ar[i] = new Image();  
		ar[i].src = arguments[i];  
	}  
}

function highlightCell(Element, highcolor) {
	document.getElementById("Cell"+Element).style.backgroundColor=highcolor;
	document.getElementById("Cell"+Element).style.cursor="pointer";
}

function unlightCell(Element, normalcolor) {
	document.getElementById("Cell"+Element).style.backgroundColor=normalcolor;
	document.getElementById("Cell"+Element).style.cursor="default";
}

function checkemail (mailtxt,errmsg) { 
	if (mailtxt.value.indexOf("@") == -1|| 
		mailtxt.value.indexOf(".") == -1|| 
		mailtxt.value.indexOf(" ") != -1|| 
		mailtxt.value.indexOf("/") != -1|| 
		mailtxt.value.indexOf(":") != -1|| 
		mailtxt.value.indexOf("'") != -1|| 
		mailtxt.length < 6 ) 
		{ 
			alert(errmsg); 
			mailtxt.focus(); 
			mailtxt.select(); 
		} 
}
