// Copyright 2002 Glad Enterprises Co., Ltd.; all Rights reserved.  //

function clk(l1,id,l2,l3){ 
var myWin=window.open('http://'+l1+'.'+l2+l3+'?KBID='+id,"","");
myWin.focus();
return false; 
} 

function clk2(l1,id,l2,l3){ 
var myWin=window.open('http://'+l1+l2+l3+'?KBID='+id,"","");
myWin.focus();
return false; 
} 

function DisplayURLregion() {
var form = document.hotelsearch;
var subregion_value = form.menu1.value;
for( Counter=0; Counter < form.menu2.length;Counter = Counter+1 )
{
    if(form.menu2[Counter].checked) {
    list_by_value = form.menu2[Counter].value;            break;    // stop executing the for loop NOW
    }
}

if (subregion_value != ""){
	if (list_by_value == '1')	{
		URL = subregion_value+ "-price1.htm";
	}
	else if (list_by_value == '2')	{
		URL = subregion_value+"-name1.htm";
	}
	else if (list_by_value == '3')	{
		URL = subregion_value+"-district1.htm";
	}
	else if (list_by_value == '4')	{
		URL = subregion_value+"-rating1.htm";
	}
		window.location.href = URL;
}
else{
	alert("please select subregion name");}
}

  function openWindow(myLink,windowName)
  {
  if(! window.focus)return;
  var myWin=window.open(myLink.href,"","height=520,width=470,toolbar=1,menubar=1,dependent=yes,scrollbars=no");
  myWin.focus();
//  myLink.target=windowName;
  }

  function openWindowoffice(myLink,windowName)
  {
  if(! window.focus)return;
  var myWin=window.open(myLink,"","height=650,width=750,toolbar=1,menubar=1,dependent=yes,scrollbars=no");
  myWin.focus();
//  myLink.target=windowName;
  }

  function openWindowBig(myLink,windowName)
  {
  if(! window.focus)return;
  var myWin=window.open(myLink,"","toolbar=0,status=0,menubar=1,scrollbars=1,resizable=0,width=740,height=445");
  myWin.focus();
}

function closeWindow()
{
	parent.close ();

//  myLink.target=windowName;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}




function openPopup(myLink,windowName)
  {
  if(! window.focus)return;
  var myWin=window.open(myLink,"","toolbar=1,status=1,menubar=1,scrollbars=1,resizable=1,width=671,height=600");
  myWin.focus();
}






function openBookingForm(myLink,windowName)
  {
  if(! window.focus)return;
  var myWin=window.open(myLink,"","toolbar=1,status=1,menubar=1,scrollbars=1,resizable=1,width=800,height=600");
  myWin.focus();
}

function openTellafriendPopup(myLink,windowName)
  {
  if(! window.focus)return;
  var myWin=window.open(myLink,"","toolbar=1,status=1,menubar=1,scrollbars=1,resizable=1,width=671,height=450");
  myWin.focus();
}

function Getrefererurl() {
	var windowprops = "height=671,width=600,location=no,"+"scrollbars=yes,menubars=no,toolbars=no,resizable=no";
	var site =  "http://maps-guide.org/cgi/contact.cgi?contacttype=callsendurl";
	var url  = site + "+refererurl=" + window.location;
	 popup = window.open(url,"MenuPopup",windowprops);
popup.focus();
}
//-->

