function checkWholeForm(theForm) {	    var why = "";    why += notEmpty(theForm.searchDate.value," - search date\n");    why += dateValid(theForm.searchDate.value);    if (why != "") {    	why = "There are required fields missing.\n" + why + "Please check these values and try again.";       alert(why);       return false;    }return true;};function notEmpty (strng,error) { if (strng == "") { 	return error; } else {return '';}};function dateValid (strng) {	var regex = /^\d{1,2}-\d{1,2}-\d{4}$/;	if (!regex.test(strng)) {		return "- The date must be in the format d-m-yyyy - eg. 30-6-2005\n";	}	else {return '';};};function replaceSlash (theField) {	var re = new RegExp('/', "g");	theField.value = theField.value.replace(re,'-');}
