var report_win; function getWindowSizes() { var sizes = new Array(0, 0, 0, 0); if( typeof( window.innerWidth ) == 'number' ) { //Non-IE sizes[0] = window.innerWidth; sizes[1] = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' sizes[0] = document.documentElement.clientWidth; sizes[1] = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible sizes[0] = document.body.clientWidth; sizes[1] = document.body.clientHeight; } if( typeof( window.pageYOffset ) == 'number' ) { //Netscape compliant sizes[2] = window.pageXOffset; sizes[3] = window.pageYOffset; } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { //DOM compliant sizes[2] = document.body.scrollLeft; sizes[3] = document.body.scrollTop; } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { //IE6 standards compliant mode sizes[2] = document.documentElement.scrollLeft; sizes[3] = document.documentElement.scrollTop; } return sizes; } function report_cm(btn_id, target, id){ var button = Ext.get(btn_id); var posX, posY; var formHTML = ""; var winSizes = getWindowSizes(); posX = (winSizes[0] - 700) / 2 + winSizes[2]; posY = (winSizes[1] - 540) / 2 + winSizes[3]; if(posX < 0) posX = 10; if(posY < 0) posY = 10; // create the window on the first click and reuse on subsequent clicks if (!report_win) { var win = new Ext.Window({ applyTo : "rpwin_rd_"+ target +"_" + id, layout : 'fit', title : '檢舉', width : 700, height : 540, pageX : posX, pageY : posY, closeAction : 'hide', modal : true, plain : true, html : formHTML }); report_win = win; }else{ report_win.body.dom.innerHTML = formHTML; } report_win.setPosition(posX, posY); report_win.addListener("hide", function(obj) { if (report_win) { report_win.body.dom.innerHTML = formHTML; } } ); report_win.show(button); } function createReportBtn(sys, target, mid){ document.write("檢舉"); document.write("
"); } var contact_win; function rd_acl_contact(btn_id, target){ var button = Ext.get(btn_id); var posX, posY; var formHTML = ""; var winSizes = getWindowSizes(); posX = (winSizes[0] - 700) / 2 + winSizes[2]; posY = (winSizes[1] - 540) / 2 + winSizes[3]; if(posX < 0) posX = 10; if(posY < 0) posY = 10; // create the window on the first click and reuse on subsequent clicks if (!contact_win) { var win = new Ext.Window({ applyTo : "rdaclcontactwin_"+ target, layout : 'fit', title : '聯絡資源負責人', width : 700, height : 350, pageX : posX, pageY : posY, closeAction : 'hide', modal : true, plain : true, html : formHTML }); contact_win = win; }else{ contact_win.body.dom.innerHTML = formHTML; } contact_win.setPosition(posX, posY); contact_win.addListener("hide", function(obj) { if (contact_win) { contact_win.body.dom.innerHTML = formHTML; } } ); contact_win.show(button); } function createContactBtn(target){ document.write("");
document.write(" ");
document.write(" ");
document.write("");
document.write("");
document.write(" |