var isNav4, isIE4
if (navigator.appVersion.charAt(0) >= "4") {
   if (navigator.appName == "Netscape") {
      isNav4 = true
   } else if (navigator.appVersion.indexOf("MSIE") != -1) {
      isIE4 = true
   }
}

var normalBase, secureBase;

normalBase = "http://" + self.location.host + self.location.pathname.slice(0, self.location.pathname.lastIndexOf("/") + 1);

secureBase = "https://" + self.location.host + self.location.pathname.slice(0, self.location.pathname.lastIndexOf("/") + 1) + "secure/";

if (isNav4)
{
  var origHeight = window.innerHeight;
  var origWidth = window.innerWidth;
}

function handleResize()
{
  if (isNav4)
	{
	  if (origHeight != window.innerHeight || origWidth != window.innerWidth)
		{
		  window.location.reload();
		}
	}
}

function openWin(url,width,height)
{ 
  features = 'toolbar=0,location=0,directories=0,status=0,scrollbars=1,menubar=0,resizable=1,width=' + width.toString() + ',height=' + height.toString();
  window.open(url,null,features);
}
