// JavaScript Document

function changeColor(id, color) { 
element = document.getElementById(id); 
//event.cancelBubble = true; 
//oldColor = element.currentStyle.backgroundColor; 
element.style.backgroundColor = color; 
} 

function setStyleYellow(x)
{
document.getElementById(x).style.background="#ffff9d"
}
function setStyleWhite(x)
{
document.getElementById(x).style.background="#ffffff"
}

var newWin = null; 
function popUp(strURL, strType, strHeight, strWidth) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="console") 
   strOptions="resizable,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixed") 
   strOptions="status,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="elastic") 
   strOptions="toolbar,menubar,scrollbars,"+ 
     "resizable,location,height="+ 
     strHeight+",width="+strWidth; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}