
function body_onload()
{
	//fixHeightById("left", "right_bg2");
}

function popupCalendar()
{
	var cal5 = new calendar2(document.forms['hotelsearch'].elements['cki']);
	cal5.year_scroll = true;
	cal5.time_comp = false;
	cal5.popup();
}

function fixXhtmlTarget(ahref, target, features)
{
	if(features + "" != "undefined")
		window.open(ahref.href, target, features);
	else
		window.open(ahref.href, target);
	return false;
}

// use this for XHTML
// sample:
// <script type="text/javascript">insertFlash('img/design/header_flash.swf', '522', '256'); </script>
function insertFlash(src, width, height)
{
	var s = '<object width="' + width + '" height="' + height + '">';
	s += '<param name="movie" value="' + src + '" />';
	s += '<embed src="' + src + '" width="' + width + '" height="' + height + '"></embed>';
	s += '</object>';
	document.write(s);
}

function fixHeight(element1, element2)
{
	var h = Math.max(element1.offsetHeight, element2.offsetHeight);
	element1.style.height = h + "px";
	element2.style.height = h + "px";
	return h;
}

function fixHeightById(id1, id2)
{
	var element1 = document.getElementById(id1);
	var element2 = document.getElementById(id2);
	return fixHeight(element1, element2);
}

