/* options of small windows */
var refw = null;
var refw_closed = false;

var optref = "resizable=0,scrollbars=1,copyhistory=0,directories=0,location=0,menubar=0,status=0,toolbar=0"
var pathref="ref/dk_ref.asp?ID="

/*  */
function ref(urlname,hg){
	if(arguments.length==1){
		hg=400
	}
	var hw = 450
	var hl = 0
	var ht = 0
	var aref = "width="+hw+",height="+hg+",left="+hl+",top="+ht
	refw = window.open(pathref + urlname,"msi",aref+","+optref)
	refw_closed=false
}

function refclose(){
	if (refw != null){
        	if (!refw_closed){
            		refw_closed = true;
            		refw.close();
		}
	}
}

