var msg 
var vStat

function validate() {
	vStat = true
	msg =  "_______________________________________________\n\n"
	msg += "The form was not submitted because of the following error(s).\n"
	msg += "Please correct the error(s) and re-submit.\n"
	msg +=  "______________________________________________\n\n"  
	//MLS#
	if(isBlank(document.forms[0].tblTransactionAttrib_TransactionNumber.value)) {
		msg += "MLS#(s) : is empty!\n"
		vStat = false
	}else {
		if (!checkMLS(document.forms[0].tblTransactionAttrib_TransactionNumber.value)) {
			msg += "MLS#(s) : invalid entry!\n"
			vStat = false
		}
	}
	if (vStat == false) {
		alert(msg)
	}
	return vStat
}

// this is for MLS search only	
function SubmitThisMLS() {
	if ( validate() ) {
		document.forms[0].submit()
	}
}

// this is for MLS search only	
function SubmitThis() {
	document.forms[0].submit()
}
