// public js functions for WR webs

function wrpopup(url){
    window.open(url,"wrpopup");
} 

function popupImage(src){
    var directories='no';
    var toolbar='no';
    var status='no';
    var menubar='no';
    var location='no';
    var posWidth = 540;
    var posHeight = 540;
    wname = 'image';
    
	if(window.screen.availHeight < posHeight){posHeight = window.screen.availHeight;} 
	if(window.screen.availWidth < posWidth){posWidth = window.screen.availWidth;}
	var posLeft = (window.screen.availWidth - posWidth)/2;
	var posTop = (window.screen.availHeight - posHeight)/2;
    var url = "/noRW_wr/popup/popup.html?"+src;
	var args='scrollbars=no,resizable=yes,location='+location+',directories='+directories+',status='+status+',menubar='+menubar+',toolbar='+toolbar+',width=' + posWidth + ',height=' + posHeight + ',left=' + posLeft + ',top=' + posTop;
	var win = window.open(url,wname,args);
	if(win){
		win.focus;
	}
    return true;
}

function showDiv(divId){
    document.getElementById(divId).style.display = 'block';
}

function hideDiv(divId){
    document.getElementById(divId).style.display = 'none';
}