// Helper Windowhelpclicked=false;document.onmousedown=helperDown;document.onmouseup=helperUp;document.onmousemove=helperDragMove;function helper(url,post,fincod,ttl,hid) {    // Enable window; 04/30/07: supports POST    // 07/25/07: fincod is script exec. at end    // 04/07/09: Works with any ID (hid) _build=false; //06/22/10: Builder - turn it off if (hid) {    hidttl = hid+'ttl';    hidtxt = hid+'text';    hidcell= hid+'cell';    } else {    hid='helpero';    hidttl='helperottl';    hidtxt='helperotext';    hidcell='helperocell';    } if (document.getElementById(hid)) {    el=document.getElementById(hid);    if (ttl) {        document.getElementById(hidttl).innerHTML=ttl;        }    if (defTop==-99) {        defTop=parseInt(el.style.top);        }    helpurl[hid]=url;    el.style.visibility="hidden";    el.style.display="block";    if (fincod) {        fincod +=";helpdeffin('"+hidcell+"','"+hidtxt+"')";        }    else        fincod="helpdeffin('"+hidcell+"','"+hidtxt+"')";    if (post) {        helperXML(url,post,hid,fincod);        }    else {        helperXML(url,'',hid,fincod);        }    } }function helpdeffin(hidcell,hidtxt) {    // Default finish function after helper call    //////////////    // Resizes width of helper (cell) as necessary    e1=document.getElementById(hidcell);    e3=document.getElementById(hidtxt);//  alert(e3.style.width+','+e3.offsetWidth+','+e1.style.width+','+e1.offsetWidth);    if (e3.offsetWidth>e1.offsetWidth) {        e1.style.width=(parseInt(e1.style.width)+(e3.offsetWidth-e1.offsetWidth)+20)+'px';        }    e1.scrollTop=0;    }function helperclose(hid) {    if (hid) ;    else {        hid='helpero';    }    el=document.getElementById(hid);//    el.style.visibility="hidden";//    if (el.style.display=="block")        el.style.display="none";    _build=true;    }function helperadj(hid) { // Adj win size    if (hid) {        hidcell = hid+'cell';        hidtxt = hid+'text';        }    else {        hid='helpero';        hidcell='helperocell';        hidtxt='helperotext';        }    e1=document.getElementById(hidcell);    e2=document.getElementById(hid);    e3=document.getElementById(hidtxt);    if (helphgt==-99) {        e2.style.visibility="visible";        e2.style.display="block";        return;        }//  tp = document.getElementsByTagName('body')[0].scrollTop;//  Note: if doctype specified in HTML, use below. Above no longer works.    if (window.innerHeight) { // Moz        tp=window.pageYOffset;        }    else if (document.documentElement && document.documentElement.scrollTop) {        // IE        tp=document.documentElement.scrollTop;        }    else if (document.body) tp=document.body.scrollTop;    else    tp=0;    e2.style.top=defTop+tp+'px';    if (helphgt==-1) {    hgt=window.innerHeight ? window.innerHeight : document.body.clientHeight;        }    else {        hgt=helphgt;        }    elb=parseInt(e2.style.top)+e3.offsetHeight+30;    if (elb-tp>hgt) {        e1.style.overflow = 'auto';        k=hgt+tp-parseInt(e2.style.top)-40;        if (k<0) k=hgt;        e1.style.height = k+'px';        adj=20;        }    else {        e1.style.height = e3.offsetHeight+'px';        adj=0;        }    lft=parseInt(e2.style.left);    if (lft<0) {        wid=window.innerWidth ? window.innerWidth : document.body.clientWidth;        e2.style.left=(wid-e2.offsetWidth-4-adj+lft)+'px';        }    e2.style.visibility="visible";    e2.style.display="block";    }function helperprint(hid) {    if (hid) ;    else hid="helpero";    if (helpurl[hid].substr(0,1) != "/") {        url=curpath+helpurl[hid];        }    else {        url=helpurl[hid];        }    window.open('/backoffice/helperprint.htm?'+url,'',            'width=640,height=480,scrollbars=1,resizable=1');    }function helperminmax(orig,loc,hid) {    if (hid) {        hidmin = hid+'minmax';  // Min Max Button        }    else {        hid='helpero';        hidmin='helperominmax';  // Min Max Button        }    el=document.getElementById(hid);    elcell=document.getElementById(hid+'cell');    eltext=document.getElementById(hid+'text');    im=document.getElementById(hidmin);    if (el.style.width==orig+'px') {        el.style.width=(2*orig)+'px';        elcell.style.width=(2*orig)+'px';        eltext.style.width=(2*orig)+'px';        im.src=loc+'helper_min_active.png';        wid=window.innerWidth?window.innerWidth:document.body.clientWidth;        if (parseInt(el.style.width)+parseInt(el.style.left)>wid) {            el.style.left=(wid-parseInt(el.style.width)-5)+'px';            }        }    else {        el.style.width=orig+'px';        elcell.style.width=orig+'px';        eltext.style.width=orig+'px';        im.src=loc+'helper_max_active.png';        helpdeffin(hid+'cell',hid+'text');        }    }function helperXML(url,post,hid,fincod) {    var fincode = fincod;    if (hid) {        var hidtxt = hid+'text';        }     else {        var hidtxt='helperotext';        }    var helpreq=false;    try {        helpreq = new XMLHttpRequest();        }    catch (trymicrosoft) {        try {            helpreq=new ActiveXObject("Msxml2.XMLHTTP");            }        catch (othermicrosoft) {            try {                helpreq=new ActiveXObject("Microsoft.XMLHTTP");                }            catch (failed) {                helpreq=false;                }            }        }    if (helpreq) {        helpreq.onreadystatechange = function () {         if (helpreq.readyState == 4 && helpreq.status == 200) {            el=document.getElementById(hidtxt);            el.innerHTML=helpreq.responseText;            if (typeof axscriptx=='function' ) {  // execute inline script//            if (typeof('axscriptx')!='undefined') { // execute inline script                axscriptx(el);                }            helperadj(hid);            if (fincode !="") {                eval(fincode);                }            }         }     //   helpreq.setRequestHeader('Referer','/backoffice/helper2.js');        if (post=='') {            helpreq.open("GET",url);            helpreq.send(null);            }        else {            helpreq.open("POST",url);            helpreq.send(post);            }        }    }function helperFlip(img,whi) {    var curSrc=img.src;    curSrc=curSrc.substring(0,curSrc.lastIndexOf('_')+1)+whi;    img.src=curSrc;    }function helperEvt(evt) {    evt = window.event ? window.event : evt;    this.evt = evt;//    this.source = evt.target ? evt.target : evt.srcElement;    this.x = evt.pageX ? evt.pageX : evt.clientX;    this.y = evt.pageY ? evt.pageY : evt.clientY;    if (this.evt.stopPropagation) {        this.evt.stopPropagation();        this.evt.preventDefault();        }    else {        this.evt.cancelBubble = true;        this.evt.returnValue = false;        }    }function helperDown(evt) {    evt=evt||window.event;    var clicktarget=evt.srcElement ? evt.srcElement:evt.target;    if ((evt.button==1 && window.event!=null || evt.button==0) && clicktarget.className=="helperdrag") {        evt=new helperEvt(evt);        if (clicktarget.id.indexOf('ttl')>-1) {            helpboxID=clicktarget.id.substr(0,clicktarget.id.indexOf('ttl'));            helpbox=document.getElementById(helpboxID);            }        else {            helpbox=clicktarget.parentNode.parentNode.parentNode.parentNode;            helpbox=helpbox.parentNode.parentNode.parentNode.parentNode;            }        helpX = evt.x-parseInt(helpbox.style.left);        helpY = evt.y-parseInt(helpbox.style.top);        document.body.style.cursor='move';        helpclicked=true;        }    }function helperUp(evt) {    helpclicked=false;    document.body.style.cursor='auto';    }function helperDragMove(evt,who) {    if (helpclicked) {        evt=evt||window.event        evtx = evt.pageX ? evt.pageX : evt.clientX;        evty = evt.pageY ? evt.pageY : evt.clientY;        if (who) {            who.helpbox.style.left = (evtx-helpX)+'px';            who.helpbox.style.top = (evty-helpY)+'px';            }        else {            helpbox.style.left = (evtx-helpX)+'px';            helpbox.style.top = (evty-helpY)+'px';            }        }    }