var IE  = (document.all) ? true : false; 
var DOM = (document.getElementById) ? true : false;
var IE4 = (document.all && !document.getElementById) ? true : false; 
var NS4 = (document.layers) ? true : false; 
var IE5 = (document.all && document.getElementById) ? true : false;
var NS6 = (document.getElementById && !document.all) ? true : false;
var major = parseInt(navigator.appVersion);

function UniMozilla(InStr) {
  var OutStr= "";
  var VarCh	= "";
  var Hex = 0x00;
  for ( var i = 0; i < InStr.length; i++) {
	VarCh = InStr[i];
	if (VarCh == 0x08) {
		OutStr += '&#08';
	} else if (VarCh == 0x09) {
		OutStr += '&#09';
	} else if (VarCh == 0x0A) {
		OutStr += '&#0A';
	} else if (VarCh == 0x0D) {
		OutStr += '&#0D';
	} else if (VarCh == 0x0E) {
		OutStr += '&#0E';
	} else if (VarCh == '"') {
		OutStr += '&#22';
	} else if (VarCh == "'") {
		OutStr += '&#27';
	} else if (VarCh == '\\') {
		OutStr += '&#5C';
	} else if ((InStr.charCodeAt(i) >= 1040) && (InStr.charCodeAt(i) <= 1104)) {
		OutStr += '&#x'+(InStr.charCodeAt(i)).toString(16);
	} else {
		OutStr += VarCh;
	}
  }
  return OutStr
}

function actn(URL){
	actnWindow=open(URL,"actnWindow","toolbar=yes,directories=yes,menubar=no,scrollbars=yes,resizable=yes,width=1024,height=768")
 if (actnWindow.opener == null){
	actnWindow.opener = self} 
 if (URL != null){
	actnWindow.location.href=URL};
	actnWindow.focus();  
}
function actn2(URL){
	actn2Window=open(URL,"actn2Window","toolbar=yes,directories=no,menubar=no,scrollbars=yes,resizable=yes,width=1024,height=768")
 if (actn2Window.opener == null){
	actn2Window.opener = self} 
 if (URL != null){
	actn2Window.location.href=URL};
	actn2Window.focus();  
}
function actn3(URL){
	actn3Window=open(URL,"actn3Window","toolbar=yes,directories=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=700")
 if (actn3Window.opener == null){
	actn3Window.opener = self} 
 if (URL != null){
	actn3Window.location.href=URL};
	actn3Window.focus();  
}
function stat(URL){
 statWindow=open(URL,"statWindow","toolbar=yes,directories=no,menubar=no,scrollbars=yes,resizable=yes,width=550,height=400")
if (statWindow.opener == null){
 statWindow.opener = self} 
if (URL != null){
 statWindow.location.href=URL};
 statWindow.focus();  
}
