/* /////////////////////////////////////////////////////////////////////////////
	 Copyright 2003, Frank Saab
     This document may not be copied, reproduced, or distributed, in any form,
	 whether electronic or other, without written permission from the author.
	 Use of this software is subject to the terms of its license agreement. 
	 For licensing info contact the author by email fsaab80303@yahoo.com.
	 You may not modify this document, and you must maintain this notice.
*///////////////////////////////////////////////////////////////////////////////
function getTheNumber() {
	var time = new Date()
	var hour = time.getHours()
	var minute = time.getMinutes()
	var second = time.getSeconds()
	var date = time.getDate()
	var month = time.getMonth() + 1
	var year = time.getYear()
	temp =   ((month < 10) ? "0" : "") + month + ((date < 10) ? "0" : "") + date + ((hour < 10) ? "0" : "") + hour + ((minute < 10) ? "0" : "") + minute + ((second < 10) ? "0" : "") + second
	return temp;
}

function hideWaitMsg() {
  if(isIE) {
	eval("document." + range + "waitPage" + styleObj + ".visibility = 'visible'");
  	eval("document." + range + "waitPage" + styleObj + ".visibility = 'hidden'");
	return;
  }
  if(isNS) {
	eval("document." + range + "'waitPage'" + styleObj + ".visibility = 'visible'");
	eval("document." + range + "'waitPage'" + styleObj + ".visibility = 'hidden'");
	return;
  }
  if (document.getElementsByTagName("*")) {
	isW3C = true;
	range = "getElementById(";
	styleObj = ").style";
  } 
  if(isW3C) {
	eval("document." + range + "'waitPage'" + styleObj + ".visibility = 'visible'");
	eval("document." + range + "'waitPage'" + styleObj + ".visibility = 'hidden'");
  }
}

function sendPop(anim,xdim,ydim) {
var osType = navigator.appVersion;
var navName = navigator.appName;
	sendWindow=window.open(anim,getTheNumber().toString(),'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=yes,resizable=yes,width='+xdim+',height='+ydim);       
	if (navName.indexOf("Netscape") != -1) {
	        configWindow.focus();
	}
}

function reloadOpenerWindow() {
	if (!(isReloaded == 1)) {
		window.opener.location.reload();
		isReloaded = 1;
	}
}
