/* options of small windows */
var refw = null;
var refw_closed = false;

var optref = "resizable=0,scrollbars=0,copyhistory=0,directories=0,location=0,menubar=0,status=0,toolbar=0"
var pathref="show.asp?ID="

/*  */
function ref(urlname){
	var hw = 620
	var hg = 500

	var x = (800-hw)/2
	var y = (600-hg)/3
    	
	if (screen) {        	
	        x = (screen.availWidth - hw)*0.5;
		y = (screen.availHeight - hg)*0.4;
    	}

	var aref = "width="+hw+",height="+hg+",screenX="+x+",screenY="+y+",top="+y+",left="+x
	refw = window.open(pathref + urlname,"tl",aref+","+optref)
	refw_closed=false
}

function refclose(){
	if (refw != null){
        	if (!refw_closed){
            		refw_closed = true;
            		refw.close();
		}
	}
}
