//
// Popup extra function
//

function popUpExtra(source,event,tabID) {

var exit=false;
popUp(source,event);
};

//
// Exit function
//

function xitpop() {
  	 if (exit){
		alert("Goodbye");
 	}
};

//
// Popup Window re-usable function.
//

function popWin(wintop,winleft,winheight,winwidth,content,wintext) {

windot = content.lastIndexOf(".");
winslash = content.lastIndexOf("/");
winextn = content.substring(windot+1);
wingraphic = ((winextn == "jpg") || (winextn == "jpeg") || (winextn == "gif")) ? true : false;

winfile = content.substring(winslash+1,windot-1);
winshape = "'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=";
winshape = winshape + String(winwidth) + ",height=" + String(winheight) + ",left=";
winshape = winshape + String(winleft) + ",top=" + String(wintop) + "'";
	
if (wingraphic) {

	msg=open("",winfile,winshape);
	msg.document.writeln("<HEAD><TITLE>Keys to Florida</TITLE>");
	msg.document.writeln("<link rel='stylesheet' type='text/css' href='"+KTF_DOMAIN+"KTF_Style.css'>");
	msg.document.writeln("</HEAD><BODY onLoad=\"window.focus()\" onBlur=\"self.close()\">");
	msg.document.writeln("<center><p align='center'><img align='center' border='0' src='",KTF_DOMAIN+content,"'></center>");
	msg.document.write("<TABLE width='100%'>");
	
	if (wintext) {
	
		msg.document.writeln("<TR><TD align='center' class='normaltext'>");
		msg.document.writeln(wintext);
		msg.document.writeln("</TD></TR>");
	
	}
	msg.document.write("<tr><td valign='top' align='center' height='1'>");
	msg.document.write("<p><FORM name=att_form action='' method=post>");
	msg.document.write("<input type='button' value='      Close      ' onclick='self.close()' name='btnClose'>");
	msg.document.writeln("</p></FORM></tr></table></BODY>");

} else {

	msg=open(KTF_DOMAIN+content,winfile,winshape);

};

};


//
// Function for dictionary routine
//

function KTF_dictionary(word,subword) {

if (subword == null) {
   subword = 1;
}
if (subword == "adult") {
   subword = 1;
}
if (subword == "child") {
   subword = 2;
}

repeat=0
while (repeat<=KTF_dictdata.length-1) {

      if (KTF_dictdata[repeat][0] == word) break;

      ++repeat
}

if (KTF_dictdata[repeat][subword] == null) {
      return("Not Found");
} else {
return(KTF_dictdata[repeat][subword]);
}

};

//
//	High Season Periods
//

function HighSeason(location) {

datenow = new Date();
document.writeln("<TABLE WIDTH='100%' border='0' cellspacing='0' cellpadding='0'>");
var Now = new Date();
var CurrentMonth = ""+Now.getMonth()+1;
var CurrentDay = ""+Now.getDate();
var CurrentDate = Now.getYear() + CurrentMonth + CurrentDay;
repeat=0;
while (repeat<=KTF_HighSeason.length-1) {
	  var FinishDate = KTF_HighSeason[repeat][2];
	  var ClosingDate = FinishDate.substring(6,10) + FinishDate.substring(3,5) + FinishDate.substring(0,2);
      if ((ClosingDate >= CurrentDate) && (KTF_HighSeason[repeat][3] == location)) {
	  
	  document.writeln("<TR><TD width='100%' CLASS='normaltext'>",KTF_HighSeason[repeat][0]," from ",KTF_HighSeason[repeat][1]," to ",FinishDate,"</TD></TR>");
	  
	  };

      ++repeat

}

document.writeln("</TABLE>");
return(false)

};