// Start Validationfunction dspErrors(elID,mesg) {	window.alert(mesg);	document.getElementById(elID).style.color = "red";	return false;}function isAlphebetic(sentVal,elID,mesg) {	if(sentVal.match(/^[a-zA-Z]+$/)) {		document.getElementById(elID).style.color = "black";		return true;	}	else {		dspErrors(elID,mesg);	}}function isPassword(sentVal,elID,mesg,secdPass) {	if(sentVal.match(/^[a-zA-Z0-9]*$/)) {		if(sentVal == secdPass) {			document.getElementById(elID).style.color = "black";			return true;		}		else {			dspErrors(elID,"Your passwords do not match.");		}	}	else {		dspErrors(elID,mesg);	}}function isPhone(sentVal,elID,mesg) {	if(sentVal.match(/^[^a-zA-Z]+$/)) {		document.getElementById(elID).style.color = "black";		return true;	}	else {		dspErrors(elID,mesg);	}}function isEmail(sentVal,elID,mesg) {	if(sentVal.match(/^([a-zA-Z0-9])+([.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-]+)+/)) {		document.getElementById(elID).style.color = "black";		return true;	}	else {		dspErrors(elID,mesg);	}}//end validationfunction doConfrim(msg){	if(window.confirm(msg))	{		return true;	}	else	{		return false;	}}function smallWindow(goHere){	window.open(goHere,'noneother','width=400,height=260,scroll=no,address=no,resize=no');}function newWindow(goHere){	window.open(goHere,'Laurel');}function hideTicket(theId){	if(document.getElementById(theId).style.visibility == 'hidden')	{		document.getElementById(theId).style.visibility = 'visible'	}	else	{		document.getElementById(theId).style.visibility = 'hidden'	}	}function doDisplay(theId){	if(document.getElementById(theId).style.display == 'block')	{		document.getElementById(theId).style.display = 'none'	}	else	{		document.getElementById(theId).style.display = 'block'	}	}function check(sentForm){	thisIndex = sentForm.pageCat.selectedIndex;	if(thisIndex < 1)	{		window.alert('Please select a catagory');		return false;	}	if(sentForm.pageName.value == "" )	{		window.alert("Pleae enter a Page Name.");		return false;	}	if(sentForm.bodyCopy.value == "" )	{		window.alert("Pleae enter some page text.");		return false;	}	}function update(aPage,aForm){		document.getElementById(aForm).action = aPage;	document.getElementById(aForm).submit();}
