function unhide(divID){var item=document.getElementById(divID);if(item){item.className=(item.className=='hidden')?'hidden':'unhidden';}}
function Validator(theForm)
{if(theForm.hotel_name.value=="")
{alert("Please enter a value for the \"Hotel Name\" field.");theForm.hotel_name.focus();return(false);}
if(theForm.hotel_name.value.length<1)
{alert("Please enter at least 1 characters in the \"Hotel Name\" field.");theForm.hotel_name.focus();return(false);}
if(theForm.review.value=="")
{alert("Please enter a value for the \"Review\" field.");theForm.review.focus();return(false);}
if(theForm.review.value.length<1)
{alert("Please enter at least 1 characters in the \"Review\" field.");theForm.review.focus();return(false);}
if(theForm.rating.selectedIndex<0)
{alert("Please select one of the \"rating\" options.");theForm.rating.focus();return(false);}
if(theForm.rating.selectedIndex==0)
{alert("The first \"rating\" option is not a valid selection.  Please choose one of the other options.");theForm.rating.focus();return(false);}
if(theForm.fname.value=="")
{alert("Please enter a value for the \"Your Name\" field.");theForm.fname.focus();return(false);}
if(theForm.fname.value.length<1)
{alert("Please enter at least 1 characters in the \"Your Name\" field.");theForm.fname.focus();return(false);}
if(theForm.email.value=="")
{alert("Please enter a value for the \"Email Adress\" field.");theForm.email.focus();return(false);}
if(theForm.email.value.length<3)
{alert("Please enter at least 3 characters in the \"Email Adress\" field.");theForm.email.focus();return(false);}
if(theForm.capcode.value=="")
{alert("Please enter a value for the \"security code\" field.");theForm.capcode.focus();return(false);}
if(theForm.capcode.value.length<4)
{alert("Please enter at least 4 characters in the \"security code\" field.");theForm.capcode.focus();return(false);}
return(true);}
