function is_msie() {
	return (navigator.appName == "Microsoft Internet Explorer");
}

var file;
var w;
var h;

function openwindow(file, w, h) {
	var win1;
	
	// Javascript 1.1
	if(parseInt(navigator.appVersion.substr(0,2))<4)
			win1=window.open(file, "", "width="+w+",height="+h+",scrollbars=yes");
	
	// Javascript 1.2
	else {	
		if (is_msie()) {
			win1=window.open(file, "", "width="+w+",height="+h+",resizable=yes,scrollbars=yes");
			win1.focus();
			
		}
		else {
			var width = w;
			var height = h;
			win1=window.open(file, "", "resizable=yes,scrollbars=yes");
			win1.window.innerWidth = width;
			win1.window.innerHeight = height;
			win1.focus();
		}
	}
}