function isNumeric(theObject) {

	if (theObject.value == "") { return true; }

	if (theObject == null)     { return true; }

	if (isNaN(theObject.value)) { return true; }

   	return false;

}

function isBlank(theObject) {

	if (theObject.value == "") { return true; }

	if (theObject == null)     { return true; }

}

function isEmail(theObject){

	with(theObject){

		apos=value.indexOf("@");

		dotpos=value.lastIndexOf(".");

		lastpos=value.length-1;

		if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2){

			return true;

		}

		else{

			return false;

		}

	}

}

function isSelected(theObject){

	if (theObject.options[theObject.selectedIndex].value) { return false; }

	return true;

}

function isChecked(theObject){

	for (i=0; i<theObject.length; i++) {

		if (theObject[i].checked) { return false; }

	}

	return true;

}

function isDateSlash(theObject){

	with(theObject){

		slash1=value.indexOf("/");

		slash2=value.lastIndexOf("/");

		if (slash1!=2 || slash2!=5 || value.length!=10){

			return true;

		}

		else{

			return false;

		}

	}

}

function isLength(theObject, theLength){

	if (theObject.value.length > theLength) { return true; }

	return false;

}

function doAlert(daItem,daMsg){

	alert(daMsg);

	daItem.focus();

}