var path;
var dimensions;
var newwindow;
var anotherwindow;
var popwin;

function btg_pop(path,pop_name,options)
{
	if(!options)
   {
options="width=788,height=484,location=yes,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,status=yes"; 
   }
	if(path)
   {
      if(!pop_name)
      {
			var n = path.split("/");
			var temp = n[n.length-1];
			n = temp.split(".");
			pop_name = n[0];
		}	
		btg_popwin = window.open(path,pop_name,options);
      var winObj = window.open(path,pop_name,options);
      if (winObj.focus) winObj.focus();
   }
}

function getToday() {
	var months = new Array("JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER")
	var d = new Date()
	var day = d.getDate()
	var year = d.getYear()
	if (day < 10) day = "0" + day.toString();
	if (year < 1000) year += 1900;
	return day + " " + months[ d.getMonth() ] + " " + year
}

function getCountDown() {
	var TargetDate = new Date("September 10, 2000");
	var NowDate = new Date();
	return (Math.floor((TargetDate.getTime() - NowDate.getTime()) / (1000 * 60 * 60 * 24)) + 1);
}

function openGlossary(word) {
        var s = '/glossary/BTGpm____glossary_WFC.fhtml?action=direct&word=' + word;
        var winObj = window.open(s,"GlossaryWin",'width=510,height=400,scrollbars=no');
        if (winObj.focus) winObj.focus();
}
