customer edit: abstract out billing info to billing.html, re-do payment type selectio...
[freeside.git] / httemplate / elements / overlibmws_iframe.js
diff --git a/httemplate/elements/overlibmws_iframe.js b/httemplate/elements/overlibmws_iframe.js
new file mode 100644 (file)
index 0000000..e3032f2
--- /dev/null
@@ -0,0 +1,93 @@
+/*\r
+ overlibmws_iframe.js plug-in module - Copyright Foteos Macrides 2003-2005\r
+   Masks system controls to prevent obscuring of popops for IE v5.5 or higher.\r
+   Initial: October 19, 2003 - Last Revised: May 15, 2005\r
+ See the Change History and Command Reference for overlibmws via:\r
+\r
+       http://www.macridesweb.com/oltest/\r
+\r
+ Published under an open source license: http://www.macridesweb.com/oltest/license.html\r
+*/\r
+\r
+OLloaded=0;\r
+\r
+var OLifsP1=null,OLifsSh=null,OLifsP2=null;\r
+\r
+// IFRAME SHIM SUPPORT FUNCTIONS\r
+function OLinitIfs(){\r
+if(!OLie55)return;\r
+if((OLovertwoPI)&&over2&&over==over2){\r
+var o=o3_frame.document.all['overIframeOvertwo'];\r
+if(!o||OLifsP2!=o){OLifsP2=null;OLgetIfsP2Ref();}return;}\r
+o=o3_frame.document.all['overIframe'];\r
+if(!o||OLifsP1!=o){OLifsP1=null;OLgetIfsRef();}\r
+if((OLshadowPI)&&o3_shadow){o=o3_frame.document.all['overIframeShadow'];\r
+if(!o||OLifsSh!=o){OLifsSh=null;OLgetIfsShRef();}}\r
+}\r
+\r
+function OLsetIfsRef(o,i,z){\r
+o.id=i;o.src='javascript:false;';o.scrolling='no';var os=o.style;\r
+os.position='absolute';os.top=0;os.left=0;os.width=1;os.height=1;os.visibility='hidden';\r
+os.zIndex=over.style.zIndex-z;os.filter='Alpha(style=0,opacity=0)';\r
+}\r
+\r
+function OLgetIfsRef(){\r
+if(OLifsP1||!OLie55)return;\r
+OLifsP1=o3_frame.document.createElement('iframe');\r
+OLsetIfsRef(OLifsP1,'overIframe',2);\r
+o3_frame.document.body.appendChild(OLifsP1);\r
+}\r
+\r
+function OLgetIfsShRef(){\r
+if(OLifsSh||!OLie55)return;\r
+OLifsSh=o3_frame.document.createElement('iframe');\r
+OLsetIfsRef(OLifsSh,'overIframeShadow',3);\r
+o3_frame.document.body.appendChild(OLifsSh);\r
+}\r
+\r
+function OLgetIfsP2Ref(){\r
+if(OLifsP2||!OLie55)return;\r
+OLifsP2=o3_frame.document.createElement('iframe');\r
+OLsetIfsRef(OLifsP2,'overIframeOvertwo',1);\r
+o3_frame.document.body.appendChild(OLifsP2);\r
+}\r
+\r
+function OLsetDispIfs(o,w,h){\r
+var os=o.style;\r
+os.width=w+'px';os.height=h+'px';os.clip='rect(0px '+w+'px '+h+'px 0px)';\r
+o.filters.alpha.enabled=true;\r
+}\r
+\r
+function OLdispIfs(){\r
+if(!OLie55)return;\r
+var wd=over.offsetWidth,ht=over.offsetHeight;\r
+if(OLfilterPI&&o3_filter&&o3_filtershadow){wd+=5;ht+=5;}\r
+if((OLovertwoPI)&&over2&&over==over2){\r
+if(!OLifsP2)return;\r
+OLsetDispIfs(OLifsP2,wd,ht);return;}\r
+if(!OLifsP1)return;\r
+OLsetDispIfs(OLifsP1,wd,ht);\r
+if((!OLshadowPI)||!o3_shadow||!OLifsSh)return;\r
+OLsetDispIfs(OLifsSh,wd,ht);\r
+}\r
+\r
+function OLshowIfs(){\r
+if(OLifsP1){OLifsP1.style.visibility="visible";\r
+if((OLshadowPI)&&o3_shadow&&OLifsSh)OLifsSh.style.visibility="visible";}\r
+}\r
+\r
+function OLhideIfs(o){\r
+if(!OLie55||o!=over)return;\r
+if(OLifsP1)OLifsP1.style.visibility="hidden";\r
+if((OLshadowPI)&&o3_shadow&&OLifsSh)OLifsSh.style.visibility="hidden";\r
+}\r
+\r
+function OLrepositionIfs(X,Y){\r
+if(OLie55){if((OLovertwoPI)&&over2&&over==over2){\r
+if(OLifsP2)OLrepositionTo(OLifsP2,X,Y);}\r
+else{if(OLifsP1){OLrepositionTo(OLifsP1,X,Y);if((OLshadowPI)&&o3_shadow&&OLifsSh)\r
+OLrepositionTo(OLifsSh,X+o3_shadowx,Y+o3_shadowy);}}}\r
+}\r
+\r
+OLiframePI=1;\r
+OLloaded=1;\r