
var selected_id = null; 
var dom = document.getElementById; 

function swapIt(id, newclass) { 
if (dom) { 
   if(selected_id != id)
   {
    el = document.getElementById(id);
    el = id;
    el.className = newclass;
   // el.style.cursor = "hand";
   // el.style.cursor = "pointer";
  }
 }
} 

function down (id,oldclass,newclass){ 
 if (dom) {
 if(selected_id != null) {
  document.getElementById(selected_id).className = oldclass;
} 
 el.className = newclass;
 selected_id = id;
} 
} 

function openWindow(href,width,height) {
	xposition=70; yposition=40;
	if ((parseInt(navigator.appVersion) >= 4 )){
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	} 
	args = "width=" + width + "," 
		    + "height=" + height + "," 
			+ "location=0," 
			+ "menubar=0,"
			+ "resizable=0,"
			+ "scrollbars=yes,"
			+ "status=yes," 
			+ "titlebar=0,"
			+ "toolbar=0,"
			+ "hotkeys=0,"
			+ "screenx=" + xposition + ","  //NN Only
			+ "screeny=" + yposition + ","  //NN Only
			+ "left=" + xposition + ","     //IE Only
			+ "top=" + yposition;           //IE Only 
	
    popup = window.open(href, '', args);
    popup.focus();
}