function expandIt(whichEl) {
	whichEl.style.display = (whichEl.style.display == "none" ) ? "" : "none";
}

function popupWindow(file,window) {
	var leftVal = (1000 - screen.width) / 2;
	var topVal = (600 - screen.height) / 2;
    msgWindow=open(file,window,'resizable=yes,width=1000,height=600,scrollbars=yes,left=0,top=0');
    if (msgWindow.opener == null) msgWindow.opener = self;
    return false;
}	

function popupWindowPar(file,window,param) {
	var leftVal = (1000 - screen.width) / 2;
	var topVal = (600 - screen.height) / 2;
    msgWindow=open(file + '"' + param + '"',window,'resizable=yes,width=1000,height=600,scrollbars=yes,left=0,top=0');
    if (msgWindow.opener == null) msgWindow.opener = self;
    return false;
}	

function load(file,target) {
    if (target != '')
        target.window.location.href = file;
    else
        window.location.href = file;
    window.close();		    
}

function loadurl(file,url ,target) {				
    if (target != '')
        target.window.location.href = file + url;
    else
        window.location.href = file + url;
    window.close();		    
}
