
/*	This code below should go near the form being validated or in a page-specific script file. */
var valfields = new Array();
var cnt = 0;

valfields[cnt++] = new valobj("orderno", "Order Number", "text", isBlank, isAllDigits);
valfields[cnt++] = new valobj("lname", "Last Name", "text", isBlank, isText);


/*	Local validation to be done after initial single-field validation. This
	function should be written for pages where one of two fields must be 
	filled, say, or if one field is filled others should be checked. */
function local_validateForm(form)
{
	//alert("status=|"+form["status"].value+"|");
	
	/*  if (form["status"].value == 3) {
		if (isBlank(form["solution"].value)){
			alert("Something must be entered in the Solution field before you can close a whitecard.");
			form["solution"].focus();
			return false;
		}
	}   */
	
	return true;
}
