// This function checks the value of one field against another
function verifynotify(strSourceFieldId,strCompareFieldId,strDivResultId,strTypeCheck,strBtnToControl) {
 this.field1 = document.getElementById(strSourceFieldId);
 this.field2 = document.getElementById(strCompareFieldId);
 this.result_id = strDivResultId;
 // ** this part could be drawn in from external css **
 this.match_html = "<SPAN STYLE=\"color:blue\">" + strTypeCheck + "s match.<\/SPAN>";
 this.nomatch_html = "<SPAN STYLE=\"color:red\">" + strTypeCheck + "s don't match!<\/SPAN>";

 //this.check = function() {

   // Make sure we don't cause an error
   // for browsers that do not support getElementById
   if (!this.result_id) { return false; }
   if (!document.getElementById){ return false; }
   r = document.getElementById(this.result_id);
   if (!r){ return false; }

   if (this.field1.value != "" && this.field1.value == this.field2.value) {
     r.innerHTML = this.match_html;
	 // enabled the submit button
	 //document.getElementById(strBtnToControl).disabled = false;
   } else {
     r.innerHTML = this.nomatch_html;
	 // disable the submit button
	 //document.getElementById(strBtnToControl).disabled = true;
   }
 //}
}
