///////////////// New window //////////////////    
function aboutWindow(url)
{	
	var width="400", height="500";
	var left=((window.screen.width)/2)-(width/2) ;
	var top=((window.screen.height)/2)-(height/2) ;
	w = window.open(url, "About", 'width='+width+',height='+height+',left='+left+',top='+top+',resizable=no,scrollbars=yes,menubar=no,progress=no');
}

function browseFunction(url,path, disabled) {
    if(disabled){
      return;
    }
    var width="450", height="450";
    var left=((window.screen.width)/2)-(width/2) ;
    var top=((window.screen.height)/2)-(height/2) ;
    if(path==''){
    	path='/';
    }
    w = window.open(url+path, "Browse", 'width='+width+',height='+height+',left='+left+',top='+top+',resizable=no,scrollbars=no,menubar=no,progress=no');
}

function getOpenedWindow(){
	return w;
}

function setFocus(form, control) {
  var focusControl = document.forms[form].elements[control];

  if (focusControl.type != "hidden") {
     focusControl.focus();
  }
}


function setWarnClass(curId,curValue)
{
	if (curValue=='false')
		eval('document.getElementById("'+curId+'")').style.color='#DB132F';
	else 	
		eval('document.getElementById("'+curId+'")').style.color='#FF8800';
}

function setOverColor(obj) {obj.style.backgroundColor="#EAF2FA"; obj.style.color="#000000";}
function setOutColor(obj) {obj.style.backgroundColor="#ffffff"; obj.style.color="#537499";}

function checkAll(checkBox, checked) {
    if (checkBox.length >= 0) for (i = 0; i < checkBox.length; i++) checkBox[i].checked = checked;
    else checkBox.checked = checked;
}
