//code to select a captcha for the verification field

var crn=1+Math.floor(Math.random()*3);
cimg='c'+crn+'.jpg';

function validate(f,crn){
  var v=f.verification.value;
  v=v.toLowerCase();
  if ( ((crn==1)&&(v=='inati'))||((crn==2)&&(v=='antwe'))||((crn==3)&&(v=='liqua')) ){}
  else {
    alert("Sorry, our site suspects you may be a spamming bot since the verification text you provided does not match what was expected.  Please retype the verification text and submit again.");
	f.verification.focus();
	return false;
  }
  return true;
}

function setVisible(object,choice){
  eval('document.getElementById("'+object+'").style.visibility="'+choice+'";');
}

function ShowStates() {
  setVisible('statesPopUp','visible');
}

function HideStates() {
  setVisible('statesPopUp','hidden');
}

function goPDF(pdf){
    window.open('http://www.mdbtpa.com/'+pdf,'','width=640,height=500,resizable=yes');
}



