
function libUnixPath(strPath) { return(strPath.replace(/\\/gi, "/")) }
// =================
// Return the path of the background image for a passed elements window and ID
// =================
function xbGetElBGImage(el){ 
 
 	if (el == null) return (""); 	
	if (document.layers) return(el.backgroundImage)
	else return(el.style.backgroundImage);
}
// =================
// Set the path of the background image for a passed elements window and ID to the passed path
// =================
function xbSetElBGImage(el,strPath){
 	if (document.layers) el.backgroundImage = strPath;
	else el.style.backgroundImage = strPath;
}
// =================
// Returns teh current classname of a passed elements ID
// =================
function xbGetElClass(el){
 	if (el != null){
 		if (document.layers ) return(""); //unsupported in document.layers.X
		else if (document.getElementById) return(el.className);
		else if (document.all ) return(el.className); 
	}
	else return("");
}
// =================
//	Returns a reference to a page element from an ID string
// =================
function xbSetElClass(el,strClass){

	if (el != null){
 		if (document.layers ) ; //unsupported in document.layers.X
		else if (document.getElementById) el.className = strClass;
		else if (document.all ) el.className = strClass;
	}
}
// =================
// Return a reference to an element from  a passed window and ID 
// =================
function xbGetElement(win,strID){
	if (document.layers) return (xbGetNS4Element(win, strID))
	if (document.getElementById) return(win.document.getElementById(strID));
	else if (document.all) return( win.document.all[strID]);
}
function xbGetInnerHTML(win,strID){
var el = xbGetElement( win, strID )

	if ( ! win.document.layers ){
		if (win.document.getElementById) return( el.innerHTML );
		else if (win.document.all)  return(el.innerHTML );
	}
}

function xbSetInnerHTML(win,strID,strHTML){
var el = xbGetElement( win, strID )

	if ( ! win.document.layers ){
		if (win.document.getElementById)  el.innerHTML = strHTML;
		else if (win.document.all)  el.innerHTML  = strHTML;
	}
}  