function piw(elem,w,h,ext)
{
	if (!ext) ext = "";
	window.open("/photo.php?img=" + elem.href + ext,"_blank","width=" + (w + 6) + ",height=" + (h + 6) + ",scrollbars=no,toolbar=no,location=no,status=no,resizable=yes,screenX=120,screenY=100").focus();
	return false;
}
function sig(elem)
{
	window.open(elem.href,"_blank","width=550,height=500,scrollbars=yes,toolbar=no,location=no,status=no,resizable=yes,screenX=120,screenY=100").focus();
	return false;
}
function reHotel(id)
{
	var tmp = document.forms["book"].elements["hotel"];
	if (cit)
	{
		if (!hots[cit])
		{
			hots[cit] = tmp.outerHTML;
		}
	}
	cit = (id.substr(0,1) == "R" ? "" : id);
	if (cit)
	{
		if (hots[cit])
		{
			tmp.outerHTML = hots[cit];
		}
		else
		{
			for (var x = tmp.childNodes.length - 1; x > 0; x--) tmp.removeChild(tmp.childNodes[x]);
			document.getElementById("hotreq").src = "/request/" + cit + ".html";
		}
	}
	else
	{
		for (var x = tmp.childNodes.length - 1; x > 0; x--) tmp.removeChild(tmp.childNodes[x]);
	}
}
function addHotel(vals,ids)
{
	if (ids.length > 1)
	{
		var tmp = document.forms["book"].elements["hotel"].options;
		for (var x = 1; x < ids.length; x++)
		{
			var opt = new Option((ids[x] ? "- " : "") + vals[x],ids[x]);
			tmp[tmp.length] = opt;
			opt.innerHTML = "&nbsp;" + opt.innerHTML;
			if (!ids[x]) opt.className = "os";
		}
	}
}

