function hide(){
	var aryDivs = new Array();
	aryDivs[0] = "flights";
	aryDivs[1] = "hotels";
	aryDivs[2] = "cars";
	aryDivs[3] = "cruise";
	
	for(var i=0;  i<aryDivs.length; i++){
		document.getElementById(aryDivs[i]).style.display='none';
	}
}
function show(strId){
	hide();
	document.getElementById(strId).style.display='';//'block'
}


       // Validates empty strings
       function ClientValidate(source, arguments){
          if (arguments.Value === ''){
          arguments.IsValid = false;
          }else{
            arguments.IsValid = true;}
       }
       
       // Validates e-mail addresses
       function CheckEmail(source,arguments)
       {
           var reg = new RegExp("\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*");
           
           if (reg.test(arguments.Value) == true)
           {
            arguments.IsValid = true;
           }else{
            arguments.IsValid = false;
           }
       }
       
       // Validates contact us drop down
       function CheckDropDown(source,arguments)
       {
           if (arguments.Value === '-')
             arguments.IsValid = false;
           else
             arguments.IsValid = true;
       }
       
       // Validates text box length
       function CheckLength(source,arguments)
       {
           if (arguments.Value.length > source.MaximumLength)
           {
            arguments.IsValid = false;
           }else{
            arguments.IsValid = true;
           }
       }
              
       function CheckContent(source,arguments)
       {
           var reg = new RegExp("[^\\w\\s.\"@',&/?-]");
           
           if (reg.test(arguments.Value) == true)
           {
            arguments.IsValid = false;
           }else{
            arguments.IsValid = true;
           }
       }
       
       function CheckString(source,arguments)
       {
           var reg = new RegExp("[^\\w\\s.\",'-]");
           
           if (reg.test(arguments.Value) == true)
           {
            arguments.IsValid = false;
           }else{
            arguments.IsValid = true;
           }
       }
       
       function CheckTelephone(source,arguments)
       {
       var reg = new RegExp ("^[0-9]+$");
       
       if (reg.test(arguments.Value) == true)
           {
            arguments.IsValid = true;
           }else{
            arguments.IsValid = false;
           }
       }

