
var pressed=0;

function resubmit(theform) {                       // field validation -
   if (pressed != 0)
         {
     alert("Your request has been submitted.Please allow a few seconds for completion.");
	  if (document.all || document.getElementById) {
for (i = 0; i < theform.length; i++) {
var tempobj = theform.elements[i];

}}
	  return false;
      } 
	     if (pressed >= 2)return true;
	  pressed++;
}


			function validate_formed(){
			var code1 = document.Suggestlisting.merrics.value;
			var code2 = document.Suggestlisting.codes.value;
			if(code1  ==  code2 ){validate_form('Suggestlisting');}
			else {document.Suggestlisting.codes.focus(); alert("Please type in the correct security code below.");			document.Suggestlisting.codes.focus();			 } 
			}
