var ns4 = (document.layers)? true:false;
var ie4 = (document.all)? true:false;

function openWin(strURL, strName, strFeatures) {
  window.open(strURL, strName, strFeatures).focus();
}

function printPage() {
  window.print();
}

function ddyGetElementById(id) {
	if (document.all) {
		return document[id];
	} else if (document.embeds) {
		return document.embeds[id];
	}
}


function DC_SetCSS(p_strObjectID, p_strCSS_ID, p_strValue, p_oRef) {
	oRef = (p_oRef)? p_oRef : this;
	if (oRef.document.getElementById && oRef.document.getElementById(p_strObjectID)) {
		oRef.document.getElementById(p_strObjectID).style[p_strCSS_ID] = p_strValue;
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);
