<!--
// load superior generalized  JonCollection JavaScript
document.write('<script language="JavaScript" src="generaljs.js"></script>');

//jons functions
function basicHeader(thingInBody) {
	return '<html><head><title>Console</title></head>'
   	+'<body onLoad="self.focus()">'
   	+ thingInBody		//'<img SRC="'+reference+'"onClick="window.close()">'
   	+'</body></html>'
}

function targetiframeTo(myiframe,addr) {
//	document.getEementById(myiframe).src=addr;
	 return false;
}

function getBrowser() {
	if (document.layers) {browserType = "nn4"}
	if (document.all) {browserType = "ie"}
	if (window.navigator.userAgent.toLowerCase().match("gecko")) {browserType= "gecko"}
	return browserType;
}

function getLayer(byName) {
	  browserType=getBrowser();
	  if (browserType == "gecko" )
     	poppedLayer = eval('document.getElementById(\''+byName+'\')');
	 else if (browserType == "ie")
     	poppedLayer = eval('document.all[\''+byName+'\']');
	 else
     	poppedLayer = eval('document.layers[\'`'+byName+'\']');
	 return poppedLayer
}

function changeOut(elementid,content){
 	if (document.getElementById){
 		rng = document.createRange();
 		el = document.getElementById(elementid);
 		rng.setStartBefore(el);
 		htmlFrag = rng.createContextualFragment(content);
 		while (el.hasChildNodes())
 			el.removeChild(el.lastChild);
 		el.appendChild(htmlFrag);
 	}
 }

function thingo() {
//	document.getLayer("Layer1").style.visibility="hidden";
//	getLayer("Layer1").style.visibility="hidden";
//	window.close();
//getLayer("Layer1").innerHTML = '<OBJECT WIDTH="509" HEIGHT="470" CODE="main.html">';
//changeOut("Layer1",'<IFRAME WIDTH="509" HEIGHT="470" SRC="main.html">');
	changeOut("myArea",'<IFRAME SRC="main.html" WIDTH="509" HEIGHT="470" SCROLLING="AUTO">');
}

function loadMain(ref) {
//changeOut("myArea",'<IFRAME SRC="'+ref+'" WIDTH="509" HEIGHT="470" SCROLLING="AUTO">');
//document.getElementById('myArea').src=ref;
//	 document.getElementById('myArea').src=ref;
	document.getElementById('myArea').src=ref;
//	frames['testiframe'].location.href=ref+"bia";
	 return false;
}
function newWindowThing(reference, title, extra) {
 top.consoleRef=window.open('',title, extra
//  'width=350,height=250'
   +',menubar=0'
   +',toolbar=0'
   +',status=0'
   +',scrollbars=0'
   +',resizable=0'
)
 top.consoleRef.document.writeln(
  '<html><head><title>Console</title></head>'
   +'<body bgcolor=black onLoad="self.focus()">'
   +'<img SRC="'+reference+'"onClick="window.close()">'
   +'</body></html>'
 )
// top.consoleRef.document.close()
}
function displayMessage(message) {
top.consoleRef=window.open('',Message,
	'width=350,height=250'
   +',menubar=0'
   +',toolbar=0'
   +',status=0'
   +',scrollbars=0'
   +',resizable=0');
 top.consoleRef.document.writeln(basicHeader(message));
}
//-->