function popup( url, w, h ) { var last, scrl=false; if( last ) last.close(); sw = screen.availWidth; sh = screen.availHeight; if( w >= sw-30 ){ w = sw-30; scrl = true; h+=16 } if( h >= sh-50 ){ h = sh-50; scrl = true; w+=16 } var popup = ""; var l = ( sw / 2 ) - (w/2); var t = ( sh / 2 ) - (h/2); popup = window.open( '', '_blank', 'height='+h+',width='+w+',screenX=150,screenY=150,top='+t+',left='+l+',toolbar=no,directories=no,status=no,menubar=no,scrollbars=' + ( scrl ? 'yes' : 'no' ) + ',resizable=yes') popup.document.write( ''+ '
'+ ''+ ''+ ''+ ' | '+ '