function SetCookie (name, value) {
	var argv = SetCookie.arguments;
	var argc = SetCookie.arguments.length;
	var expires = (argc > 2) ? argv[2] : null;
	var path = (argc > 3) ? argv[3] : null;
	var domain = (argc > 4) ? argv[4] : null;
	var secure = (argc > 5) ? argv[5] : false;
	document.cookie = name + "=" + escape (value) +((expires == null) ? "" : ("; expires=" +expires.toGMTString())) +
		((path == null) ? "" : ("; path=" + path))+((domain == null) ? "" : ("; domain=" + domain))+((secure == true) ? "; secure" : "");
}
function setLang(lang){
	pathname = location.pathname;
	myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/';
	var largeExpDate = new Date ();
	largeExpDate.setTime(largeExpDate.getTime() + (365 * 24 * 3600 * 1000));
	SetCookie('lang',lang,largeExpDate,myDomain);
}
function openwin(theURL) {
	myWindowHeight=screen.height-150;
	win = window.open(theURL,"f","titlebar=no,menubar=no,toolbar=no,location=no,scrollbars=yes,resizable=no,width=516,height="+myWindowHeight+"");
	win.focus();
}
function openwinRequest(theURL) {
	win = window.open(theURL,"f","titlebar=no,menubar=no,toolbar=no,location=no,resizable=no,scrollbars=yes,width=516,height=600");
	win.focus();
}
function doCountrySelect(cid){
	var countryCount=document.quickForm.countrySb.length;
	var i;
	for(i=0;i< countryCount;i++)
		if(document.quickForm.countrySb.options[i].value==cid) {
    	document.quickForm.countrySb.options[i].selected=true;
	}
}
function doContinent(cid){
	syncSb(cid);
	var i;
	for(i=0;i< 7;i++)
	if(document.quickForm.rcontinent[i].value==cid) {
		document.quickForm.rcontinent[i].checked=true;
	}
}
function doSelectContinent(cid){
	location.href='index.html?continentID='+cid;
}
window.defaultStatus="Top Hotel | world of leading luxury hotels";
function setflymenu(mode,layer){
	if (document.layers)
		eval("document.flymenu"+layer+".display="+mode);
	else if (document.getElementById)
		document.getElementById("flymenu"+layer).style.display=mode;
	else
		eval("document.all.flymenu"+layer+".display="+mode);		
}

