function rollover(name,over)
{
	if(window.document.images) 
	{
		if (over)
			window.document.images[name].src = "images/" + name + "_hot.gif";
		else
			window.document.images[name].src =  "images/" + name + ".gif";
	}
}

function selectTab(n) {
  var panelID = "p1"
  var numDiv = 4

  // iterate all tab-panel pairs
  for(var i=0; i < numDiv; i++) {
    var panelDiv = window.document.getElementById(panelID+"panel"+i)
    var tabDiv = document.getElementById(panelID+"tab"+i)
	
     z = panelDiv.style.zIndex
     
     // if this is the one clicked and it isn't in front, move it to the front
     if (z != numDiv && i == n) { 
        z = numDiv 
     }
     // in all other cases move it to the original position
     else { 
	z = (numDiv-i) 
     }
    
    panelDiv.style.zIndex = z;
    tabDiv.style.zIndex = z;
  }
}
function popup(URL)  {
	window.open(URL, "_remote_control", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,height=500,width=340");
}