//***************************************
function rogeeAutoFinSysHidden(eID){
	var e = document.getElementById(eID);
	if(	e.style.display		== "block"){
		e.style.display		= "none";
		e.style.visibility	= "hidden";
	}else{
		e.style.display		= "block";
		e.style.visibility	= "visible";
	}
}
function rogeeAutoFinSysVisible(eID){
	var e = document.getElementById(eID);
	if(	e.style.display		== "none"){
		e.style.display		= "block";
		e.style.visibility	= "visible";
	}else{
		e.style.display		= "none";
		e.style.visibility	= "hidden";
	}
}
function rogeeAutoFinSysShowMe(eID){
	var e = document.getElementById(eID);
	e.style.display		= "block";
	e.style.visibility	= "visible";
}
function rogeeAutoFinSysHideMe(eID){
	var e = document.getElementById(eID);
	e.style.display		= "none";
	e.style.visibility	= "hidden";
}


//***************************************
function rogBoxShowMe(lightID, fadeID){
	document.getElementById(lightID).style.display='block';
	document.getElementById(fadeID).style.display='block';
}
function rogBoxHideMe(lightID, fadeID){
	document.getElementById(lightID).style.display='none';
	document.getElementById(fadeID).style.display='none';
}


//***************************************
function RogeeBI400x300(url){
	rbiWin1 = window.open(url,'RogeeBI400','WIDTH=400,height=300,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left=0,top=0');
	rbiWin1.focus();
}

function RogeeBI640x480(url){
	rbiWin2 = window.open(url,'RogeeBI650','WIDTH=640,height=480,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left=0,top=0');
	rbiWin2.focus();
}

function RogeeBI800x640(url) {
	rbiWin3 = window.open(url,"RogeeBI800","WIDTH=800,height=640,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=1,status=1,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left=0,top=0");
	rbiWin3.focus();
}

function RogeeBI980x720(url) {
	rbiWin4 = window.open(url,"RogeeBI980","WIDTH=980,height=720,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=1,status=1,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left=0,top=0");
	rbiWin4.focus();
}

function RogeeBI1028x768(url) {
	rbiWin4 = window.open(url,"RogeeBI1028","WIDTH=1028,height=768,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=1,status=1,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left=0,top=0");
	rbiWin4.focus();
}

function SiteDeparture(url) {
	rbiWin4 = window.open(url,"SiteDepartureRogeeBI","WIDTH=900,height=700,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=1,menubar=1,resizable=1,scrollbars=1,status=1,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left=0,top=0");
	rbiWin4.focus();
}

function trcNew(url) {
	myWdw = window.open(url,"rogWind","WIDTH=782,height=540,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=1,menubar=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=1,z-lock=0,screenX=0,screeny=0,left=0,top=0");
	myWdw.focus();
}

//***************************************
var please_wait = null;
function open_url(url, target) {
 	if ( ! document.getElementById) {
  		return false;
 	}
 	if (please_wait != null) {
  		document.getElementById(target).innerHTML = please_wait;
 	}
 	if (window.ActiveXObject) {
  		link = new ActiveXObject("Microsoft.XMLHTTP");
 	} else if (window.XMLHttpRequest) {
  		link = new XMLHttpRequest();
 	}
 	if (link == undefined) {
  		return false;
 	}
 	link.onreadystatechange = function() { response(url, target); }
 	link.open("GET", url, true);
 	link.send(null);
}
function response(url, target) {
 	if (link.readyState == 4) {
	 	document.getElementById(target).innerHTML = (link.status == 200) ? link.responseText : "<b>KoooDooo Alert:</b><br>-Content Pending.<br>-Error Number " + link.status;
	}
}
function set_loading_message(msg) {
 	please_wait = msg;
}

//***************************************
function rogNavSwap(i_zImgName, i_zImgNewSrc){
	if (document.images){
		document.images[i_zImgName].src = i_zImgNewSrc;
	}
}

//***************************************
var oldClass;
function switchClass(classObj, newClass) {
  if( newClass ) {
    oldClass = classObj.className;
    classObj.className = newClass;
  } else {
    classObj.className = oldClass;
  }
}
