

function openWindow(URL){
var popupWin;

popupWin=open(URL,'remote','width=500,height=500,scrollBars=yes,resizable=1');
if (popupWin.opener == null) popupWin.opener = self;

}

function openNewWin(url, name, height, width, winParamStr){
 if (arguments.length < 5) {
    winParamStr = "left=100,top=100,resizable=yes,scrollbars=yes,toolbar=no,status=yes,menubar=no";    	
 }
 if (arguments.length < 4) { 
    width = 900;
 }
 if (arguments.length < 3) {
    height = 540;
 }
 if (arguments.length < 2) {
    name = '';
 }
 winParamStr = "height=" + height + ",width=" + width + "," + winParamStr;    	
 window.open(url, name.replace(/\s/g, ""), winParamStr );
}

function winRefreshUpdate(){   
   var agree=confirm("Are you sure you want to Update...?");
   
   if (agree){ 			
		window.opener.location.href="contentMgmt%2CImageForm.vm?mode=update&obj=admin&id=null";			
		window.close(self);
		return true;		
	}
	else{
		return false;
	}
}



function setVisibility(id, visibility) {
document.getElementById(id).style.display = visibility;
}


function winRefreshDelete(){   
   var agree=confirm("Are you sure you want to Delete...?");
   
   if (agree){ 			
		top.opener.location.href="contentMgmt%2CImageForm.vm?mode=update&obj=admin&id=null";			
		window.close(self);
		return true;		
	}
	else{
		return false;
	}
}
