NewWindow=null;
function ViewImage(src, w, h, title){
	if(NewWindow){NewWindow.close();}
	if(NewWindow==null || NewWindow.closed){
	 if (typeof(title)=="undefined" || title=="") title="Gallery";
	 settings=
	 "left=10,"
	 +"top=20,"
	 +"width=" + w + ","
	 +"height=" + h + ","
	 +"toolbar=no,"
	 +"location=no,"
	 +"directories=no,"
	 +"status=no,"
	 +"menubar=no,"
	 +"scrollbars=no,"
	 +"resizable=no"
	 NewWindow = window.open("",'Klose',settings);
	}
	NewWindow.document.open();
	NewWindow.document.clear();
	NewWindow.document.write(
	"<html><head><title>"+ title +"</title></head>\n"
	+"<body topmargin=0 leftmargin=0 bgcolor=#FFFFFF onclick=\"window.close();\">\n"
	+"<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=0><tr><td align=\"center\" valign=\"middle\"><img src=" + src + " border=1></td></tr></table>\n"
	+"</body>\n"
	+"</html>"
	);
	NewWindow.document.close();
	NewWindow.focus();
}

function FormTransfer(bool1,bool2) {
	if (bool1 || bool2) {
		document.all.transferDIV.style.display = "";
	}
	else document.all.transferDIV.style.display = "none";
}

function goNextField(field,value) {
	if (value.length == 4) {
		document.bookingForm[field].focus();
	}
}

NewWindow2 = null;
function ShowWin(adreska, w, h){
if(NewWindow2){NewWindow2.close();}
if(NewWindow2==null || NewWindow2.closed){
 settings=
 "left=20,"
 +"top=20,"
 +"width=" + w + ","
 +"height=" + h + ","
 +"toolbar=no,"
 +"location=no,"
 +"directories=no,"
 +"status=no,"
 +"menubar=no,"
 +"scrollbars=yes,"
 +"resizable=yes"
 NewWindow2 = window.open(adreska,'okno',settings);
}
NewWindow2.focus();
}

function createGoogleMap(el,latd,longt) {
    if (GBrowserIsCompatible()) {
        var map = new GMap2(el);
		var center = new GLatLng(latd,longt);
        // map.addControl(new GSmallMapControl());
        // map.addControl(new GMapTypeControl());
        map.setCenter(center, 16);
        var hotel = new GIcon();
        hotel.image = "http://www.euroholiday.cz/maps/hotel.png";
        hotel.shadow = "http://www.euroholiday.cz/maps/shadow.png";
        hotel.iconSize = new GSize(21, 31);
        hotel.shadowSize = new GSize(52, 29);
        hotel.iconAnchor = new GPoint(6, 20);
        hotel.infoWindowAnchor = new GPoint(5, 1);
        map.addOverlay(new GMarker(center, hotel))
    }
}