




/*
     FILE ARCHIVED ON 12:26:06 Dec 12, 2005 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 9:36:47 Nov 28, 2011.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
// Copyright 2002 Glad Enterprises Co., Ltd.; all Rights reserved.  //
// maps.js
  function openWindow(myLink,windowName)
  {
  if(! window.focus)return;
  var myWin=window.open(myLink.href,"","height=450,width=450,toolbar=1,menubar=1,dependent=yes,scrollbars=no");
  myWin.focus();
  }
  
  function openWindowoffice(myLink,windowName)
  {
  if(! window.focus)return;
  var myWin=window.open(myLink,"","toolbar=1,status=1,menubar=1,scrollbars=1,resizable=1,width=671,height=650");
  myWin.focus();
  }

  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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function openPopup(myLink)
  {
  if(! window.focus)return;
  var myWin=window.open(myLink,"","toolbar=1,status=1,menubar=1,scrollbars=1,resizable=1,width=671,height=550");
  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)
  {
  if(! window.focus)return;
  var myWin=window.open(myLink,"","toolbar=1,status=1,menubar=1,scrollbars=1,resizable=1,width=671,height=550");
  myWin.focus();
}

// tellafriend
function Getrefererurl() {	
	var windowprops = "height=410,width=670,location=no,"+"scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
	var site =  "http://web.archive.org/web/20051212122606/http://directrooms.com/cgi/v3contact.cgi?";
	var url  = site + "refererurl=" + window.location;
	 popup = window.open(url,"MenuPopup",windowprops);
popup.focus();
}

// newletter
function ClearEmail() {
	if (document.newsletter.email.value = "Enter Email")
		document.newsletter.email.value="";
}

function PopupResultNewsletter() {
var windowprops = "height=200,width=671,location=no,"+"scrollbars=no,menubars=no,toolbars=no,resizable=no";
var URL = "http://web.archive.org/web/20051212122606/http://directrooms.com/cgi/v3contact.cgi?contacttype="+document.newsletter.contacttype.value+"+email="+document.newsletter.email.value+"+refererurl="+window.location;
popup = window.open(URL,"NewsletterPopup",windowprops);
popup.focus();
}

// addbookmark
function Winopen(page,no)
{
window.open(page,"Newwin"+no,"toolbar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=yes,width=700,height=490");
}

function closeWindow () 
{
	parent.close ();
}

function BackWindow () 
{
	history.go(-1);
}

function addbookmark()
{
	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
		bookmarkurl="http://web.archive.org/web/20051212122606/http://directrooms-myanmar.com";
		bookmarktitle="Welcome To Hotel Online Reservation by directrooms-myanmar.com";
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle);
}
else {
var msg = "if your browser isn't Microsoft Internet Explorer, Please see belows";
	if(navigator.appName == "Netscape") {
		msg = "Your browser is Netscape, Please see belows or press Ctrl+D";	
	}
	alert(msg);
}
}

// Exchanges
var currency_value;
function chk_currencyid() {
  if (document.exchangecurrency.currencyid.options[document.exchangecurrency.currencyid.selectedIndex].value != '')
{
currency_value = document.exchangecurrency.currencyid.options[document.exchangecurrency.currencyid.selectedIndex].value;
return true; 
}
    alert('Select one to exchange rates');
    return false;
}

function ShowExchangeRate() {
if(!chk_currencyid()) return;
var windowprops = "height=450,width=700,location=no,"+"scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
var URL = "http://web.archive.org/web/20051212122606/http://directrooms.com/cgi/changecurrency.cgi?action=send+hotelid="+document.exchangecurrency.hotelid.value+"+currencyid="+currency_value;
popup = window.open(URL,"MenuPopup",windowprops);
popup.focus();
}
