function ordertest(){  
 flag=0;
 if ((document.orderform.client.value=="")||(document.orderform.client.value==" "))
   {
    alert("Введите, пожалуйста, Ваше имя!");
    document.orderform.client.focus();
    flag=1; return false;
   }

 if ((document.orderform.phone.value=="")||(document.orderform.phone.value==" "))
   {
    alert("Введите, пожалуйста, контактный телефон!");
    document.orderform.phone.focus();
    flag=1; return false;
   }
      
 if ((document.orderform.omail.value=="")||(document.orderform.omail.value==" "))
   {
    alert("Введите, пожалуйста, контактный e-mail!");
    document.orderform.omail.focus();
    flag=1; return false;
   }
                                                 
 if ((document.orderform.address.value=="")||(document.orderform.address.value==" "))
   {
    alert("Введите, пожалуйста, Ваш почтовый адрес!");
    document.orderform.address.focus();
    flag=1; return false;
   }
                                                 

 if ((document.orderform.inday.value=="0")||(document.orderform.inmonth.value=="0"))
   {
    alert("Введите, пожалуйста, дату заезда!");
    document.orderform.inday.focus();
    flag=1; return false;
   }
                                                 
 if ((document.orderform.outday.value=="0")||(document.orderform.outmonth.value=="0"))
   {
    alert("Введите, пожалуйста, дату отъезда!");
    document.orderform.inday.focus();
    flag=1; return false;
   }


 if (document.orderform.room.value=="0")
   {
    alert("Выберите, пожалуйста, категорию номера!");
    document.orderform.inday.focus();
    flag=1; return false;
   }
   

 if (flag!=1) document.orderform.submit();

}



function questtest(){  
 flag=0;
 if ((document.questform.client.value=="")||(document.questform.client.value==" "))
   {
    alert("Введите, пожалуйста, Ваше имя!");
    document.questform.client.focus();
    flag=1; return false;
   }

 if ((document.questform.omail.value=="")||(document.questform.omail.value==" "))
   {
    alert("Введите, пожалуйста, контактный e-mail!");
    document.questform.omail.focus();
    flag=1; return false;
   }

 if ((document.questform.message.value=="")||(document.questform.message.value==" "))
   {
    alert("Введите, пожалуйста, текст сообщения!");
    document.questform.message.focus();
    flag=1; return false;
   }
   
 if (flag!=1) document.questform.submit();

}

