<!--
	function getMonth() {
		months = new Array();
		months[0] = "Jan";
		months[1] = "Feb";
		months[2] = "Mar";
		months[3] = "Apr";
		months[4] = "May";
		months[5] = "Jun";
		months[6] = "Jul";
		months[7] = "Aug";
		months[8] = "Sep";
		months[9] = "Oct";
		months[10] = "Nov";
		months[11] = "Dec";
		
		return months;		
	}

	function getDay() {	
		days = new Array();
		days[0] = "Sun";
		days[1] = "Mon";
		days[2] = "Tue";
		days[3] = "Wed";
		days[4] = "Thu";
		days[5] = "Fri";
		days[6] = "Sat";
		
		return days;
	}

	var bName = navigator.appName;
	var bVer = parseInt(navigator.appVersion);

	function displayDate() {
	
		mnth = getMonth();
		dy = getDay();
		myDate = new Date();
		today = myDate.getDay();
		day = myDate.getDate();
		month = myDate.getMonth();
		year = myDate.getYear();
		
		if(bName == "Netscape"){
			year = myDate.getYear() + 1900;
		}
		else {
			year = myDate.getYear();
		}
			
		return(dy[today]+", "+day+" "+mnth[month]+" "+year);
	}
	
	// Deposit Bits
	function windowOpener(days,mtype) {
		var message = "<b><span style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;color:#666699;'>Refundable Deposit</span></b><p ><span='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;color:#808080;'>Your deposit will be refunded if you cancel upto " + days + " days before arrival. We require email confirmation of your cancellation request or a verbal cancellation request. You will incur a mandatory administration fee of US $60  UK £40 in these circumstances</span></p>";
		var message2 = "<b><span style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;color:#666699;'>Deposit</span></b><p ><span='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;color:#808080;'>The deposit required to secure this reservation is stated here. The balance is required 42 days prior to arrival. You will receive an email reminder at the appropriate time.</span></p>";
		var message3 = "<b><span style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;color:#666699;'>Refundable Deposit</span></b><p ><span='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;color:#808080;'>Your deposit will be refunded if you cancel up to 14 days (off peak periods) and 21 days (peak periods) before arrival. We require email confirmation of your cancellation request or a verbal cancellation request. You will incur a mandatory administration fee of US $60  UK £40 in these circumstances</span></p>";
		var message4 = "<b><span style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;color:#666699;'>Refundable Deposit</span></b><p><span='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;color:#808080;'>For many hotels we are able to refund the deposit paid to secure your room reservation.<br>The requirement is that you cancel either 14 or 21 days prior to arrival (depending on the hotel / and or, the time year). There is normally a small admin charge in these circumstances.</span></p>";
 		
 		msgWindow=window.open("","displayWindow","menubar=no,scrollbars=no,status=yes,width=300,height=200")
 		if (days) {
 			msgWindow.document.write(message);
 		}
 		else if(mtype == 2) {
 			msgWindow.document.write(message2);
 		}
		else if(mtype == 4) {
 			msgWindow.document.write(message4);
 		}
 		else {
   		msgWindow.document.write(message3);
 		}
	}
	function prompt() {
		if((confirm("This option is for Island Hopping purposes!"))) {
			window.location = 'specify.pl?action=add';
		}
	}
	function pop() {
		page = "http://www.oanda.com/converter/classic?user=caribbean&lang=en";
		window.open(page,'CurrenyConverter','status=yes,scrollbars=no,resizable=no,width=650,height=550');
	}
	
	function showvt(id,wt,ht,hc,pop) {
		
		
		if (pop == "1") {
			url = "/cgi-bin/banner.pl?action=redirect&id=" + id + "&width=" + wt + "&height=" + ht;
		}
		else {
			url = "/cgi-bin/vts.pl?hotelcode=" + hc + "&id=" + id + "&width=" + wt + "&height=" + ht;
		}
		newWindow = window.open(url,"",'toolbar=no,scrollbars=no,resizable=no,height=' + ht + ',width=' + wt + ',screenx=0,screeny=0,top=0,left=0');
		//if (newWindow.opener == null) newWindow.opener = self;
	}
	
	function popUp(urlpage, wid, hei) {
		popWindow=window.open(urlpage, "popWindow", 'width=' +wid+ ',height='+hei+' +toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0');
	}

	function video(vid) {
		pop = window.open('vid','Jamaica_Video','height=350,width=370,status=yes,toolbar=no,menubar=no,location=no');
	}
	
	function openwin(param) {
		var url = "/cgi-bin/showoffer.pl?hotelcode=" + param;
		offwin = window.open(url,"","scrollbars=yes,height=200,width=300");
	}
//-->