
function NewWindow(url) {
	if (url == '') 	url = window.location.href;
	var winW = 630, winH = 460;
	
	if (parseInt(navigator.appVersion)>3) {
	 if (navigator.appName=="Netscape") {
	  winW = window.innerWidth;
	  winH = window.innerHeight;
	 }
	 if (navigator.appName.indexOf("Microsoft")!=-1) {
		 //winW = document.body.clientWidth;
		// winH = document.body.clientHeight;
	  winW = document.body.offsetWidth;
	  winH = document.body.offsetHeight;
	 }
	}
	
	//document.write( "Window width = "+winW+"<br>"+"Window height = "+winH+"<br>")
	
	newW = Math.floor((winW * .75));
	newH = Math.floor(newW - (newW * .35));
	
	
	//document.write( "Window width = "+newW+"<br>"+"Window height = "+newH+"<br>")
	
	size = "toolbar=1, resizable=1, scrollbars=1, alwaysRaised=1, width = " +newW+ ", height = " +newH;
	window.open(url, "Smiley", size);
}

