function switchforms(theid){

var thearray= new Array('form1','form2', 'form3');
for(i=0; i<thearray.length; i++){
      if(thearray[i] == theid){
            document.getElementById(theid).style.display="block";
      }else{
            document.getElementById(thearray[i]).style.display="none";
      }
   }
}
