function libUnixPath(strPath) { return(strPath.replace(/\\/gi, "/")) }
function xbGetElBGImage(el){ 
 	if (el == null) return (""); 	
	if (document.layers) return(el.backgroundImage)
	else return(el.style.backgroundImage);
}
function xbSetElBGImage(el,strPath){
 	if (document.layers) el.backgroundImage = strPath;
	else el.style.backgroundImage = strPath;
}
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("");
}
function xbWinWidth() {
	if (document.layers) {
     w = window.innerWidth;
	}
	if (document.all) {
   	w = document.body.clientWidth;
	}
	return(w);
}
function xbWinHeight() {
	if (document.layers) {
     h  = window.innerHeight;
	}
	if (document.all) {
   	h = document.body.clientHeight;
	}
	return(h);
}
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;
	}
}
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;
	}
}  
function xbSetStyleByClass(t,c,p,v){
var ie = (document.all) ? true : false;
var elements;
	if(t == '*') {
		// '*' not supported by IE/Win 5.5 and below
		elements = (ie) ? document.all : document.getElementsByTagName('*');
	} else {
		elements = document.getElementsByTagName(t);
	}
	for(var i = 0; i < elements.length; i++){
		var node = elements.item(i);
		if( node.attributes==undefined) return;
		for(var j = 0; j < node.attributes.length; j++) {
			if(node.attributes.item(j).nodeName == 'class') {
				if(node.attributes.item(j).nodeValue == c) {
					eval('node.style.' + p + " = '" +v + "'");
				}
			}
		}
	}
}
