//function for opening document window
function openwin(URL,widthstring,height,name) {
	var width = parseInt(widthstring);
	var ua = navigator.appName;
	var plat = navigator.platform;
	var stat;
	if (!name) {
		name = "NVR";
	}
	if (width > 0 && (plat == "Win32")) {
		width += 20;
		
	}
	if (!width) {
		width = 350;
	} 
	if (!height) {
		height = 300;
	}
	
	if (ua == 'Netscape' && plat != "Win32") {
		stat = 'yes';
	} else {
		stat = 'no';
	}
	aWindow=window.open(URL,name,'width='+width+',height='+height+',toolbar=no,status='+stat+',scrollbars=yes,resize=yes,menubar=no,directories=no');
	aWindow.focus();
	}
	
	
	