var ePrDat; var eChgPrDat; var ePrDatPnl; var vPrDatPnl = false; function adjustIframe(id) { f = document.getElementById(id); c = f.contentWindow.document.documentElement; f.style.height = document.all ? c.scrollHeight : c.offsetHeight + "px"; } function openPrDatPnl() { document.body.style.cursor="pointer"; eChgPrDat.style.backgroundColor= "#ffa500"; ePrDatPnl.style.visibility = "visible"; vPrDatPnl = true; } function closePrDatPnl() { eChgPrDat.style.backgroundColor = "transparent"; ePrDatPnl.style.visibility = "hidden"; document.body.style.cursor="default"; vPrDatPnl = false; } function chgPrDatOut() { document.body.style.cursor="default"; } function chgPrDatClk() { if ( vPrDatPnl ) closePrDatPnl(); else openPrDatPnl(); } function prDatPnlOvr(id) { document.getElementById(id).style.backgroundColor= "#ffa500"; document.body.style.cursor="pointer"; } function prDatPnlOut(id) { document.getElementById(id).style.backgroundColor= "#ffeebb"; document.body.style.cursor="default"; } function prDatPnlClk(id) { closePrDatPnl(); n = id.substr( 11, id.length - 11 ); if ( n != 48 ) { fe = document.getElementById("IDFORMPRNO"); fe.n.value = n; fe.submit(); } else { window.open( "oldsite/index.html" ); } } function onPageLoad() { eChgPrDat = document.getElementById("IDCHANGEDATE"); eChgPrDat.onmouseover = function(){openPrDatPnl();}; eChgPrDat.onmouseout = function(){chgPrDatOut();}; eChgPrDat.onclick = function(){chgPrDatClk();}; ePrDatPnl = document.getElementById("IDDATEPANEL"); ePrDatPnl.onmouseover = function(){openPrDatPnl();}; ePrDatPnl.onmouseout = function(){closePrDatPnl();}; for ( i=0; i<49; i++ ) { id = "IDPANELITEM" + i; if ( (e=document.getElementById(id)) != null ) { e.onmouseover = function(){prDatPnlOvr(this.id);}; e.onmouseout = function(){prDatPnlOut(this.id);}; e.onclick = function(){prDatPnlClk(this.id);}; } } }