x_flow_id = document.all.pFlowId.value; x_flow_step_id = document.all.pFlowStepId.value; x_session = document.all.pInstance.value; function GetBase() { var oBaseColl = document.getElementsByTagName("BASE"); return ( (oBaseColl && oBaseColl.length) ? oBaseColl[0].href : null ); } function fnpopURL(u) { ur=GetBase()+"c3_istore_pkg.popurl?url="+escape(u)+"&X_SESSION_ID="+x_session; window.open(ur); // r=c3posturl(ur); // t=r.responseText.substr(0,2); // if (t=="OK") { // window.open(u); // } else { // alert(r.responseText); // } } function c3ifrmsizeiStore(iframeName) { var agentstr = navigator.userAgent.toLowerCase(); var isIE = false; docwt = "100%"; curwt = document.body.clientWidth-20; if (agentstr.indexOf("msie") != -1) { isIE = true; } o = document.getElementById(iframeName); try { if (o&&o.contentWindow) { try { docht = o.contentWindow.document.body.scrollHeight; dw=o.contentWindow.document.body.scrollWidth; sw=screen.availWidth; if (dw=50) { o.style.height = "auto"; try { o.style.height=docht; o.style.width=docwt; } catch(e) { o.style.height=800; } } } else { o.style.width=curwt; } } catch(e) { window.status="error:"+e.description ; } if (!isIE) { window.setTimeout("c3ifrmsize(\"" + iframeName + "\")", 1500); } else if(o.readyState!="complete") { window.setTimeout("c3ifrmsize(\"" + iframeName + "\")", 1500); } } function istorefreezheader() { o = document.getElementById("c3istore"); nt=o.contentWindow.document.getElementById("c3FreezeHeader"); if (nt) { lf=0; tp=0; nr=nt.rows(0); cls=nt.className; ep=nr; while (ep.offsetParent) { lf=lf+ep.offsetParent.offsetLeft; tp=tp+ep.offsetParent.offsetTop; ep=ep.offsetParent; } // lf=+20; tp=+145; ntp=document.body.scrollTop-tp; if (ntp<=0) { divheader=o.contentWindow.document.getElementById("divheader"); if (divheader) { divheader.removeNode(true); } } else { divheader=o.contentWindow.document.getElementById("divheader"); if (!divheader) { divheader=o.contentWindow.document.createElement("DIV"); o.contentWindow.document.body.appendChild(divheader); divheader.id="divheader"; divheader.style.position="absolute"; divheader.innerHTML=""+nr.outerHTML+"
"; nnt=o.contentWindow.document.getElementById("hdrtbl"); nnr=nnt.rows(0); for (i=0;i"+el.itemid+""; } } ni.value=ni.value+""; } function redirect(u) { window.location="http://www.spep.com/istore/"+u; }