home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 April
/
Chip_2003-04_cd1.bin
/
internet
/
emerite
/
js
/
emerite.js
Wrap
Text File
|
2003-02-12
|
549b
|
17 lines
function s(t) {
window.status=t;
return true;
}
// open new win func
function openWin( path, width, height ) {
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) );
emewin.focus();
}
function getCenterW(width) {
return parseInt( eval( (screen.width-parseInt(width))/2 ) );
}
function getCenterH(height) {
return parseInt( eval( (screen.height-parseInt(height))/2 ) );
}