function verifyForm(theForm){
	var msg='';
	if ((theForm.price2.value!='blank')&&(theForm.price2.value!='')) {
		if ((Math.exp(theForm.price2.value)<='0') || ((theForm.price2.value)%1!=0)) { msg='Please input lowest price correctly'	}
	}else{
		if ((theForm.ziua.value==0)||(theForm.luna.value==0)||(theForm.an.value==0)||(theForm.ziual.value==0)||(theForm.lunal.value==0)||(theForm.anl.value==0)) {
			msg='Please select both the arrival and departure dates' }
		else
		if (((theForm.ziua.value>theForm.ziual.value)&&(theForm.luna.value==theForm.lunal.value)&&(theForm.an.value==theForm.anl.value)) |((theForm.luna.value>theForm.lunal.value)&&(theForm.an.value==theForm.anl.value))||(theForm.an.value>theForm.anl.value)){
			msg='Please select Arrival date < Departure date' }
		var startdate=new Date(theForm.an.value, theForm.luna.value, theForm.ziua.value);var enddate=new Date(theForm.anl.value, theForm.lunal.value, theForm.ziual.value);var one_day=1000*60*60*24;var diff=(enddate.getTime()-startdate.getTime())/(one_day);
		if (diff>28) { 	msg='Please select a period of maximum 28 days'}
	}
	if(msg!=''){alert(msg);return false;}
}
