var dhtml="<div id='disableDiv' style=\"display:none;vertical-align:middle;filter:alpha(opacity=50);-moz-opacity:.50;opacity:.50;background-color:#6386DE;text-align:center;width:102%;height:200%;position:absolute;margin:0px;top:0px;left:0px;\"></div>";
var shtml="<div id='fContent' style='z-index:120;display:none;position:absolute;top:100px;left:200px;border:1px solid #000066;background-color:white;' class='popDiv'><div style='width:680px;text-align:right;background-color: #FFFFFF'><a href='#' onclick=\"hideShow('none');\"><span class='blueLink'>[close]</span>&nbsp;</a><img src='images/x.gif' style='cursor:pointer' onclick=\"hideShow('none');\" border=0 alt='Close'>&nbsp;<br></div><div id='popMenu'></div><div id='cartCont' class='popupContent'>";
shtml+="<iframe src=\"loading.cfm\" width=600 height=600 style=\"border:0px solid #6386DE;\" frameborder=0 name=\"popURL\" id=\"popURL\" class=\"xscrollBar\"></iframe></div></div>";

document.write(dhtml);
document.write(shtml);

function popupURL(url,xw,xh){

            document.getElementById("popURL").src=url;

            if(xh!=null){

                  document.getElementById("popURL").height=xh-100;

                  document.getElementById("fContent").style.height=xh;

            }

            if(xw!=null){

                 document.getElementById("popURL").width=xw;

                 document.getElementById("fContent").style.width=xw;
                 var divLeft=getWinWidth()/2-400;

                 document.getElementById("fContent").style.left=divLeft;

            }

            hideShow('');

}

 function getWinWidth(){

            if(navigator.appName.indexOf("Microsoft")==-1){

                        return window.innerWidth;           

            }else{

                        return document.body.offsetWidth;

            }

}


function hideShow(opt,xw,xj){
            var pobj=document.getElementById("disableDiv");

            var pobj2=document.getElementById("fContent");

            pobj2.style.display=opt;

            pobj.style.display=opt;

            if(opt=="none"){

                      //  document.getElementById("popURL").src="loading.cfm";

            }

}
