

var nscape = (document.all)? false:true;

//=============================================================
function showNewWin(WinName,WinURL,win_details){
	MsgWin = window.open(WinURL,WinName,win_details);
}

//=============================================================
function ImgOnfocusJpg(name){
  if (nscape){
    var what = document.getElementById(name).src;
    document.getElementById(name).src = what.substring(0,what.indexOf(".jpg"))+"1.jpg"
  }else{
    var what = document.all.item(name).src;
    document.all.item(name).src=what.substring(0,what.indexOf(".jpg"))+"1.jpg";
  }
}
//==========================================================
function ImgNofocusJpg(name){
  if (nscape){
    var what = document.getElementById(name).src;
    document.getElementById(name).src = what.substring(0,what.indexOf("1.jpg"))+".jpg"
  }else{
    var what = document.all.item(name).src;
	document.all.item(name).src=what.substring(0,what.indexOf("1.jpg"))+".jpg";
  }
}

//=============================================================
function ImgOnfocus(name){
  if (nscape){
    var what = document.getElementById(name).src;
    document.getElementById(name).src = what.substring(0,what.indexOf(".gif"))+"1.gif"
  }else{
    var what = document.all.item(name).src;
    document.all.item(name).src=what.substring(0,what.indexOf(".gif"))+"1.gif";
  }
}
//==========================================================
function ImgNofocus(name){
  if (nscape){
    var what = document.getElementById(name).src;
    document.getElementById(name).src = what.substring(0,what.indexOf("1.gif"))+".gif"
  }else{
    var what = document.all.item(name).src;
	document.all.item(name).src=what.substring(0,what.indexOf("1.gif"))+".gif";
  }
}

//=============================================================
function showDiv(divName){
  if (nscape) {
    var DivObj = document.getElementById(divName);
  }else {
    var DivObj = document.all.item(divName);
  }
  if (DivObj.style.left=="0px" | DivObj.style.left=="0pt") {
    if (nscape) {
      var iWidth=document.width
    }else{
      var iWidth=document.body.clientWidth
    }
    //720 is width of internal page and 240 is width of div
    DivObj.style.left = ((iWidth-720)/2)-62 + "px"
  }

  DivObj.style.visibility="visible";
}

//=============================================================
function closeDiv(divName){
  if (nscape) {
    var DivObj = document.getElementById(divName);
  }else {
    var DivObj = document.all.item(divName);
  }
  DivObj.style.visibility="hidden";
}

//=============================================================
function SizeImage(objImg) { 
	if (objImg.width > 20) { 
		objImg.width = 69;
	}
}

