// JavaScript Document
function highLight(obj,col)
{
	
	if(col.substring(0,1)=='#'){
		obj.style.background=col;
	}else{
	 	obj.style.backgroundImage = "url(" + col + ")";
	}
}
//var popup=0;
function windowOpen(url,w,h){
	 /*if (popup){
	  if(!popup.closed){
	    popup.close();
	  }
	 }
	// 
	 popup=window.open(url,'win','status=no,top=0,left=0,fullscreen,scrollbars=no,width='+w+',height='+h+'');
	 popup.focus();
	
	 //obj.resizeTo(w+4,h+48);
	//document.bobup = obj;
	*/
	var str = "'left=0,screenX=0,top=0,screenY=0,menubar=0,resizable=no,scrollbars=yes,status=0,titlebar=0,toolbar=0,fullscreen";
	if (window.screen) {
	  var ah = screen.availHeight;
	  var aw = screen.availWidth;
	  str += ",height="+ah;
	  str += ",width="+aw;
	} else {
	  str += ",resizable'"; // so the user can resize the window manually
	}
	win = window.open(url,'win',str);
	win.focus();
 }
