			
				function winpop(w,h,u,n){
					window.open(u,"_blank","HEIGHT="+h+",WIDTH="+w+",dependent=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,menubar=no,left=0,top=0");
				}
				function winpop_noscroll(w,h,u,n){
					window.open(u,"_blank","HEIGHT="+h+",WIDTH="+w+",dependent=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,menubar=no,left=0,top=0");
				}



				function winpopcenter(w,h,u,n){
				    function winWid(){ return ( (ns4||ns6) ? window.innerWidth:document.body.clientWidth ); }
				    function winHei(){ return (ns4||ns6) ? window.innerHeight:document.body.clientHeight; }
				    function centerX(){ return (ns4||ns6) ? parseInt((screen.width/2)-(width/2)):parseInt((screen.availWidth/2)-(width/2)); }
				    function centerY(){ return (ns4||ns6) ? parseInt((screen.height/2)-(height/2)):parseInt((screen.availHeight/2)-(height/2)); }
				    var ns4 = (document.layers) ? 1 : 0;
				    var ie4 = (document.all) ? 1 : 0;
				    var ns6 = (document.getElementById && !document.all) ? 1 : 0;
				    var width=winWid();
				    var height=winHei();
				    var difx=w-winWid();
				    var dify=h-winHei();
				    width+=(difx);
				    height+=(dify);
					window.open(u,"_blank","HEIGHT="+h+",WIDTH="+w+",dependent=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,menubar=no,left="+centerX()+",top="+centerY());
				}

/** This function works like winpopcenter except that it gives a return value: true if the window was successfully opened
 * And false if it failed, for instance if the browser does not allow popups;
 *
 * @author Gustav Grusell
 */
function trywinpopcenter(w,h,u,n){

	function winWid(){ return ( (ns4||ns6) ? window.innerWidth:document.body.clientWidth ); }
		function winHei(){ return (ns4||ns6) ? window.innerHeight:document.body.clientHeight; }
		function centerX(){ return (ns4||ns6) ? parseInt((screen.width/2)-(width/2)):parseInt((screen.availWidth/2)-(width/2)); }
		function centerY(){ return (ns4||ns6) ? parseInt((screen.height/2)-(height/2)):parseInt((screen.availHeight/2)-(height/2)); }
		var ns4 = (document.layers) ? 1 : 0;
	var ie4 = (document.all) ? 1 : 0;
	var ns6 = (document.getElementById && !document.all) ? 1 : 0;
	var width=winWid();
	var height=winHei();
	var difx=w-winWid();
	var dify=h-winHei();
	width+=(difx);
	height+=(dify);
	
	var newWindow=	window.open(u,"_blank","HEIGHT="+h+",WIDTH="+w+",dependent=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,menubar=no,left="+centerX()+",top="+centerY());
	if( newWindow == null || typeof( newWindow ) == 'undefined' )
		return false;
	else
		return true;
				    
}