var isMinIE5 = (navigator.appVersion.indexOf("5.")) >= 0 ? 1 : 0;
var isDOM = (document.getElementById) ? 1 : 0;
	
function changeColor(objId,color) {
		if (isMinIE5||isDOM) {
			document.getElementById(objId).style.color=color;
		} else {
			return;
		}
}
	
function changeBgColor(objId,color) {
		if (isMinIE5||isDOM) {
			document.getElementById(objId).style.backgroundColor=color;
		} else {
			return;
		}
}

function changeBgColor(newBgColor) {
       if (window.document && window.document.bgColor) {
               document.bgColor = newBgColor;
  }
}
	
function popup(filename,w,h)
	{
    	var wl = (screen.width - w) / 2;
		var wt = (screen.height - h) / 2;
		var size = ("resizable=0,scrollbars=no,left=" + wl + ",top=" + wt +",width=" + w + ",height=" + h);
		popupwindow=window.open(filename,"popup",size);
		setTimeout('popupwindow.focus();',250);
}