home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 April / Chip_2003-04_cd1.bin / internet / emerite / js / emerite.js
Text File  |  2003-02-12  |  549b  |  17 lines

  1. function s(t) {
  2. window.status=t;
  3. return true;
  4. }
  5.  
  6. // open new win func
  7. function openWin( path, width, height ) {
  8.         emewin=window.open(path,'_eMerite','scrollbars=yes,resizable=yes,resize=no,width='+width+',height='+height+',screenX='+getCenterW(width)+',screenY='+getCenterH(height)+',top='+getCenterH(height)+',left='+getCenterW(width) );
  9.         emewin.focus();
  10. }
  11.     
  12. function getCenterW(width) {
  13.     return parseInt( eval( (screen.width-parseInt(width))/2 ) );
  14. }
  15. function getCenterH(height) {
  16.     return parseInt( eval( (screen.height-parseInt(height))/2 ) );
  17. }