
function check_gb()
	{

	if (document.gb.name.value=='' || document.gb.city.value=='' || document.gb.comments.value=='') {
		alert('You have some empty fields!');
		window.document.gb.name.focus();
		return false;
	} else 	if (window.document.gb.hislo.value=="") {
		alert("Please enter the code!");
		window.document.gb.hislo.focus();
		return false;
  	} else {
    	window.document.gb.submit();
    	return true;
	}
}


function find()
	{
	if (document.poisk.n_city.value==0 && document.poisk.n_price_s.value==0 && document.poisk.n_price_po.value==0 && document.poisk.n_size.value==0 && document.poisk.n_sort.value==0) {
		alert('All fields are empty, check it, please!');
		window.document.poisk.n_city.focus();
		return false;
	} else {
    	window.document.poisk.submit();
    	return true;
	}
}

   function popup(loc)
   {
    HTML="<html><head><meta http-equiv=\"imagetoolbar\" content=\"no\"><style>body{margin:0px 0px 0px 0px}</style></head><body onBlur='top.close()'><img src='"+loc+"' border=0  name=li  onLoad='window.resizeTo(document.li.width+10,document.li.height+70)'></body></html>";
    if(window.screen) var myleft=(screen.width-600)/2,mytop=(screen.height-600)/2;
    popupImage=window.open('about:blank','_blank','toolbar=no,scrollbars=no,width=300,height=300,left='+myleft+',top='+mytop);
    popupImage.document.open();
    popupImage.document.write(HTML);
    popupImage.document.close();
   }


function q11()  {
	mmenu.style.display = 'inline';
       }

function q12()  {	mmenu.style.display = 'none';
       }

function check_booking()
	{

	if (document.booking.name.value=='' || document.booking.address.value=='') {
		alert('You have some empty fields!');
		window.document.booking.name.focus();
		return false;
	} else 	if (window.document.booking.hislo.value=="") {
		alert("Please enter the code!");
		window.document.booking.hislo.focus();
		return false;
  	} else {
    	window.document.booking.submit();
    	return true;
	}
}

function check_contact()
	{

	if (document.contact.name.value=='' || document.contact.email.value=='' || document.contact.message.value=='') {
		alert('You have some empty fields!');
		window.document.contact.name.focus();
		return false;
	} else 	if (window.document.contact.hislo.value=="") {
		alert("Please enter the code!");
		window.document.contact.hislo.focus();
		return false;
  	} else {
    	window.document.contact.submit();
    	return true;
	}
}
