br=navigator.appName; //browser type


function setPosition(x,y,object){
  if (document.getElementById) { //for firefox and IE
   document.getElementById(object).style.left = x + "px";
   document.getElementById(object).style.top = y + "px"; 
   }
 
 else if(document.all){ //for old IE
   document.all.object.style.left = x + "px";
   document.all.object.style.top = y + "px";
 } 

 else if(document.layers) { //for netscape
   document.layers[object].left= x + "px";
   document.layers[object].top= y + "px";
 }
}
function setVisible(object,choice){
 
 if(document.getElementById) { //for firefox and IE
   document.getElementById(object).style.visibility= choice;
 }
 
 else if(document.all){ //for old IE
   document.all.object.style.visibility = choice;
 }
 
 else if(document.layers) { //for netscape
   document.layers[object].visibility= choice;
 }
}

function showLogoSmall(x,y){
  setPosition(x,y,'logoSmallRollover');
  setVisible('logoSmallRollover','visible');
}

function isInt(x) {
   var y=parseInt(x);
   if (isNaN(y)) return false;
   return x==y && x.toString()==y.toString();
 } 
 
//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;
}


