public.js 525 B

1234567891011
  1. //open sized window
  2. function openWindow(sHref,strWidth,strHeight) {
  3. var strLeft=(screen.availWidth-strWidth)/2;
  4. var strTop=(screen.availHeight-strHeight)/2;
  5. var strRef="";
  6. strRef=strRef+"width="+strWidth+"px,height="+strHeight+"px,";
  7. strRef=strRef+"left="+strLeft+"px,top="+strTop+"px,";
  8. strRef=strRef+"resizable=yes,scrollbars=yes,status=yes,toolbar=no,systemmenu=no,location=no,borderSize=thin";//channelmode,fullscreen
  9. var openerobj= window.open(sHref,'newwin',strRef,false);
  10. openerobj.focus();
  11. }