function MM_reloadPage(init) 
{  //reloads the window if Nav4 resized
  if (init==true) with (navigator) 
	{
	  if ((appName=="Netscape")&&(parseInt(appVersion)==4)) 
	  	{
    		document.MM_pgW=innerWidth; 
			document.MM_pgH=innerHeight; 
			onresize=MM_reloadPage; 
		}
	}
  	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function remove_text2 () 
{
   	var element_remove = document.getElementById('mail');
	if (element_remove.value == 'e-mail') 
	{
		element_remove.value = '';
	}
	element_remove.style.color = "black";
	return;
}

function checkMail(value) 
{
	re =/^[A-Za-z0-9_\-]+(\.[A-Za-z0-9_\-]+)*@([A-Za-z0-9_\-]+\.)+[A-Za-z0-9_\-]{2,3}$/;
	if(!re.test(value))	return false;
	return true;
}

function ShowHotel(id)
{
var H1=screen.availHeight-100; 
var W1=screen.availWidth-100;
show = window.open('show_hotels.php?id=' + id + '','hotels', 'width=' + W1 + ', height=' + H1 + ', left=0, top=0, directories=no, toolbar=0, resizable=yes, scrollbars=yes');
return;
}
function bron(id)
{
var H1=screen.availHeight-100; 
var W1=screen.availWidth-670;
show = window.open('bron.php?id=' + id + '','bron', 'width=' + W1 + ', height=' + H1 + ', left=350, top=0, directories=no, toolbar=0, resizable=yes, scrollbars=yes');
return;
}
function BigPic(imgpath)
{
var H1=screen.availHeight-100; 
var W1=screen.availWidth-100;
show = window.open('','BigPic', 'width=' + W1 + ', height=' + H1 + ', left=0, top=0, resizable=yes, scrollbars=yes');
show.document.write
(
'<center><br><br><img class="border" src="images/' + imgpath + '"><br><br><br><input type="button" onclick="window.close();" class="button" value="закрыть" style="font-family: Tekton Pro Cond; color: #07599C; border-style: double; border-width: 3px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #6699FF"></center>'
);
show.focus();
}
function ShowFood()
{
show = window.open('show_meal.php','food', 'width=400, height=300, left=0, top=0, resizable=yes, scrollbars=yes');
return;
}
function ShowFood2()
{
show = window.open('show_meal.php','new_window', 'width=200, height=600, left=0, top=0, resizable=yes, scrollbars=yes');
return;
}

function shower(param)
{
	alert(param);
}

function printPage() 
{
var tdLinks	= document.getElementById('tdLinks');
tdLinks.style.display = 'none';  
window.print();
}