function reFrameSize(frameId,frameName) { try{ //var oBody = this.document.body; //var oBody = parent.vipSort.document.body; //vipSort:window name var oBody = parent.frames[(frameName) ].document.body; //vipSort:iframe name var oFrame = parent.document.getElementById((frameId) ); oFrame.style.height = '0'; //Shrink first and then enlarge (for Firefox) oFrame.style.width = '100%'; //Shrink first and then enlarge (for Firefox) oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight); oFrame.style.width = oBody.scrollWidth + (oBody.offsetWidth - oBody.clientWidth); if (oFrame.style.height == '0pt') {// for Firefox oFrame.style.height = '100%'; } } catch(e) { //An error is raised if the IFrame domain != its container's domain //window.status = 'Error: ' + e.number + '; ' + e.description; } } function reSubFrameSize(frameId,frameName,parentFrameId,parentFrameName) { try{ var oBody = parent.frames[frameName].document.body; var oFrame = parent.document.getElementById(frameId); oFrame.style.height = '0'; oFrame.style.width = '100%'; oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight); oFrame.style.width = oBody.scrollWidth + (oBody.offsetWidth - oBody.clientWidth); var pBody = parent.parent.frames[parentFrameId].document.body; //vipSort:iframe name var pFrame = parent.parent.document.getElementById(parentFrameName); pFrame.style.height = '0'; //Shrink first and then enlarge (for Firefox) pFrame.style.width = '100%'; //Shrink first and then enlarge (for Firefox) pFrame.style.height = pBody.scrollHeight + (pBody.offsetHeight - pBody.clientHeight); pFrame.style.width = pBody.scrollWidth + (pBody.offsetWidth - pBody.clientWidth); if (pFrame.style.height == '0pt') {// for Firefox pFrame.style.height = '100%'; } } catch(e) { //An error is raised if the IFrame domain != its container's domain //window.status = 'Error: ' + e.number + '; ' + e.description; } } function reSize() { try{ // escape firefox if(navigator.appVersion.indexOf('MSIE') != -1){ var MajorVer=navigator.appVersion.match(/MSIE (.)/)[1]; var MinorVer=navigator.appVersion.match(/MSIE .\.(.)/)[1]; //IE6:6.0//IE7:7.0//IE8:8.0 //if ((MajorVer >= 7.0 && MajorVer <= 9.0) || (MajorVer >= 7.0 && MinorVer >= 7.0 && MajorVer <= 9.0 && MinorVer <= 9.0)) if (MajorVer == 8.0) { reFrameSize("vipSort","vipSort"); } } }catch(e){ } } function reSubSize() { reSubFrameSize("subForm","subForm","vipSort","vipSort"); } function enableLink(ids) { if (ids != null) { var targetIds = ids.split(','); if (targetIds != null) { var size = targetIds.length; for (i = 0; i < size; i++) { var link = document.getElementById(targetIds[i]); if (link != null) { link.disabled = ""; link.style.cursor = "pointer"; } } } } reSize(); } function disableLink(ids) { if (ids != null) { var targetIds = ids.split(','); if (targetIds != null) { var size = targetIds.length; for (i = 0; i < size; i++) { var link = document.getElementById(targetIds[i]); if (link != null) { link.disabled = "disabled"; link.style.cursor = "wait"; } } } } reSize(); }