var fts=false;var ftsResultColorize=true;function absLeft(a){return(a.offsetParent)?a.offsetLeft+absLeft(a.offsetParent):a.offsetLeft}function absTop(a){return(a.offsetParent)?a.offsetTop+absTop(a.offsetParent):a.offsetTop}function e(){var a=arguments[0];a=document.getElementById(a);return a}function showContainer(b,a){hideAllContainer();y=a.y;x=a.x;y=y+messageToIconOffsetY;if(x>=maxXforMessages){x-=messageToIconOffsetX;x-=maxXCorrector;x+=10}else{x=x+messageToIconOffsetX}e("mBox"+b).style.left=x;e("mBox"+b).style.top=y;e("mBox"+b).style.zIndex=99;e("mBox"+b).style.display="block"}function hideAllContainer(){elementIndex=0;elementCollector=e("mapContent").getElementsByTagName("div");while(elementIndex<elementCollector.length){if(elementCollector[elementIndex].id.indexOf("icon")!=-1){e(elementCollector[elementIndex].id).style.zIndex=11;e(elementCollector[elementIndex].id).style.zIndex=11}if(elementCollector[elementIndex].id.indexOf("mBox")!=-1){e(elementCollector[elementIndex].id).style.display="none";e(elementCollector[elementIndex].id).style.zIndex=11}elementIndex++}}function hideContainer(a){e("mBox"+a).style.display="none";e("mBox"+a).style.zIndex=11}function highlightMessageIcon(a,b){e("crossX").style.top=b+8;e("crossX").style.left=0;e("crossX").style.display="block";e("crossX").style.zIndex=8;e("crossY").style.top=0;e("crossY").style.left=a+8;e("crossY").style.display="block";e("crossY").style.zIndex=8}function stopHighlighting(){e("crossX").style.display="none";e("crossY").style.display="none"}function setShowMapCloseLink(){if(window.opener&&e("showMapClose")){closeLink='<a class="btnAsLink" onmouseover="window.status=\''+closeText+'\'; return true" onmouseout="window.status=\'\'; return true" href="javascript:window.close();">'+closeText+"<a>";e("showMapClose").innerHTML=closeLink}}prepare=false;initial=false;var sr=new Array();sr[0]=new Array(0,0,0,0,0);sr[1]=new Array(0,0,0,0,0);sr[2]=new Array(0,0,0,0,0);sr[3]=new Array(0,0,0,0,0);sr[4]=new Array(0,0,0,0,0);sr[5]=new Array(0,0,0,0,0);uicSort=null;var typeIndexMapping=new Array(2,1,4,3,0);function createTable(){if(e("mapActionMenu")){e("mapActionMenu").style.display=""}e("himTableStatic").style.display="none";if(prepare==false){prepareTable()}initialSortTable();initial=true;filterTableByDate(e("filterDateBegin").value,e("filterDateEnd").value);initial=false}function prepareTable(){for(var i=0;i<him.length;i++){for(var h=0;h<him[i].length;h++){if(typeof him[i][h]!="undefined"){him[i][h][24]=replaceUmlaute(him[i][h][3]);him[i][h][25]=replaceUmlaute(him[i][h][4]);him[i][h][22]=new Date(him[i][h][7],him[i][h][6]-1,him[i][h][5],him[i][h][14],him[i][h][15],"00");him[i][h][23]=new Date(him[i][h][10],him[i][h][9]-1,him[i][h][8],him[i][h][17],him[i][h][18],"00");var b=him[i][h][43].split(" ");var g=b[0].split(".")[0];var d=b[0].split(".")[1]-1;var j=b[0].split(".")[2];var f=b[1].split(":")[0];var c=b[1].split(":")[1];var a=b[1].split(":")[2];him[i][h][44]=new Date(j,d,g,f,c,a)}}}prepare=true}function prepareDateFilter(c,d){var b=c.split(".");var g="20"+b[2];var f=b[1]-1;var a=b[0];return new Date(g,f,a,d,0,0)}function resetInitview(){for(var a=0;a<=5;a++){initView[a]=0}}function filterByType(){if(typeof him=="undefined"&&archiv==true){}else{filterTableByDate(e("filterDateBegin").value,e("filterDateEnd").value)}}function filterTableByDate(date1,date2){if(document.getElementById("filterFreitext")){var ftValue=document.getElementById("filterFreitext").value;ftValue=encode(ftValue);fts=(ftValue!="")?true:false}typeFilter=5;if(updateMode=="customerInternal"||updateMode=="himuser"){for(var d=0;d<=5;d++){if(e("mdt"+d)&&e("mdt"+d).checked==true){typeFilter=e("mdt"+d).value}}}if(useMap){hgMapCtrl.clear()}if(e("messageDisplayType")){e("messageDisplayType").selectedIndex=0}var fS=prepareDateFilter(date1,0);var fE=prepareDateFilter(date2,24);if(fS>fE){alert(unescape(checkDateFilterText))}else{resetInitview();for(var t=0;t<him.length;t++){for(var rowNr=0;rowNr<him[t].length;rowNr++){if(typeof him[t][rowNr]!="undefined"){if(him[t][rowNr][46]==""){him[t][rowNr][46]=new Date(him[t][rowNr][33],him[t][rowNr][32]-1,him[t][rowNr][31],him[t][rowNr][37],him[t][rowNr][38],"00")}if(him[t][rowNr][47]==""){him[t][rowNr][47]=new Date(him[t][rowNr][36],him[t][rowNr][35]-1,him[t][rowNr][34],him[t][rowNr][39],him[t][rowNr][40],"00")}dS=him[t][rowNr][46];dE=him[t][rowNr][47];if(fts){if(((him[t][rowNr][12].indexOf(ftValue)!=-1)||(him[t][rowNr][13].indexOf(ftValue)!=-1)||(him[t][rowNr][30].indexOf(ftValue)!=-1))&&((t==3&&initial)||((dS<fE&&dE>=fS)&&(him[t][rowNr][2]==typeFilter||typeFilter>4)&&!disabledByServiceDays(t,rowNr,fS,fE)))){initView[t]=1;him[t][rowNr][21]=true;if(ftsResultColorize){var text_51=him[t][rowNr][12];var text_52=him[t][rowNr][13];var text_53=him[t][rowNr][30];var ftsExp=eval("/"+ftValue+"/g");him[t][rowNr][51]=text_51.replace(ftsExp,'<span style="background-color:#FA0;">'+ftValue+"</span>");him[t][rowNr][52]=text_52.replace(ftsExp,'<span style="background-color:#FA0;">'+ftValue+"</span>");him[t][rowNr][53]=text_53.replace(ftsExp,'<span style="background-color:#FA0;">'+ftValue+"</span>")}if(archiv==false){handleMapIcon(him[t][rowNr][0],true)}}else{him[t][rowNr][21]=false;if(archiv==false){handleMapIcon(him[t][rowNr][0],false)}}}else{if((t==3&&initial)||((dS<fE&&dE>=fS)&&(him[t][rowNr][2]==typeFilter||typeFilter>4)&&!disabledByServiceDays(t,rowNr,fS,fE))){initView[t]=1;him[t][rowNr][21]=true;if(archiv==false){handleMapIcon(him[t][rowNr][0],true)}}else{him[t][rowNr][21]=false;if(archiv==false){handleMapIcon(him[t][rowNr][0],false)}}}}}}}if(e("messageTable")&&e("himTable")&&e("himTable").hasChildNodes()){e("himTable").removeChild(e("messageTable"))}drawTable()}function disabledByServiceDays(c,b,f,a){if(!him[c][b][11]||showAllMes){return false}dBegin=new Date(him[c][b][33],him[c][b][32]-1,him[c][b][31],"00","00","00");dEnd=new Date(him[c][b][36],him[c][b][35]-1,him[c][b][34],"00","00","00");calDay=Math.round((a-f)/(1000*60*60*24));calBit=Math.round((f-dBegin)/(1000*60*60*24));bitSet=false;for(var d=0;d<calDay;d++){curBit=calBit+d;if(curBit>=0&&him[c][b][41].substr(curBit,1)=="1"){return false}}return true}function handleMapIcon(a,b){if(b&&useMap){hgMapCtrl.showMessageByNumber(a+1)}}function showAllMessages(){if(e("messageDisplayType")){e("messageDisplayType").selectedIndex=0}for(var b=0;b<him.length;b++){for(var a=0;a<him[b].length;a++){if(typeof him[b][a]!="undefined"){initView[b]=1;him[b][a][21]=true;if(archiv==false){handleMapIcon(him[b][a][0],true)}}}}if(e("messageTable")&&e("himTable")&&e("himTable").hasChildNodes()){e("himTable").removeChild(e("messageTable"))}drawTable()}function replaceUmlaute(a){s1=a.replace(/&#214;/g,"Oe");s2=s1.replace(/&#196;/g,"Ae");s3=s2.replace(/&#220;/g,"Ue");s4=s3.replace(/&#246;/g,"oe");s5=s4.replace(/&#228;/g,"ae");s6=s5.replace(/&#252;/g,"ue");return s6}function encode(a){var b=a.replace(/'/g,"&#39;");b=b.replace(/�/g,"$#192;");b=b.replace(/�/g,"&#224;");b=b.replace(/�/g,"&#194;");b=b.replace(/�/g,"&#226;");b=b.replace(/�/g,"&#198;");b=b.replace(/�/g,"&#230;");b=b.replace(/�/g,"&#199;");b=b.replace(/�/g,"&#231;");b=b.replace(/�/g,"&#200;");b=b.replace(/�/g,"&#232;");b=b.replace(/�/g,"&#201;");b=b.replace(/�/g,"&#233;");b=b.replace(/�/g,"&#202;");b=b.replace(/�/g,"&#234;");b=b.replace(/�/g,"&#203;");b=b.replace(/�/g,"&#235;");b=b.replace(/�/g,"&#206;");b=b.replace(/�/g,"&#238;");b=b.replace(/�/g,"&#207;");b=b.replace(/�/g,"&#239;");b=b.replace(/�/g,"&#212;");b=b.replace(/�/g,"&#244;");b=b.replace(/�/g,"&#338;");b=b.replace(/�/g,"&#339;");b=b.replace(/�/g,"&#217;");b=b.replace(/�/g,"&#249;");b=b.replace(/�/g,"&#219;");b=b.replace(/�/g,"&#251;");b=b.replace(/�/g,"&#376;");b=b.replace(/�/g,"&#255;");b=b.replace(/�/g,"&#214;");b=b.replace(/�/g,"&#196;");b=b.replace(/�/g,"&#220;");b=b.replace(/�/g,"&#246;");b=b.replace(/�/g,"&#228;");b=b.replace(/�/g,"&#252;");b=b.replace(/�/g,"&#204;");b=b.replace(/�/g,"&#236;");b=b.replace(/�/g,"&#205;");b=b.replace(/�/g,"&#237;");b=b.replace(/�/g,"&#210;");b=b.replace(/�/g,"&#242;");b=b.replace(/�/g,"&#211;");b=b.replace(/�/g,"&#243;");b=b.replace(/�/g,"&#218;");b=b.replace(/�/g,"&#250;");return b}function drawTable(){nnm=new Array();var h=new Array(5,0,1,2,3,4);document.getElementById("himTable").innerHTML="";var l='<table class="himmessages" cellspacing="0" id="messageTable" style="width:'+cMapWidth+'px;">';for(var o=0;o<him.length;o++){st=h[o];if(initView[st]==1){var c=8;if(updateMode=="customerInternal"){c++}if(updateMode=="himuser"){c++}l+='<tr><th class="first headline" colspan="'+c+'">'+th_texts[st][7]+"</th></tr>";l+='<tr><th class="icon first"><a href="javascript:sortTable('+st+',2)">'+th_texts[st][0]+'</a></th><th class="number"><a href="javascript:sortTable('+st+',0)">'+tNumber+'</a><a name="'+th_texts[st][1]+'"></a></th>';if(st==0||st==5){l+='<th class="message"><a href="javascript:sortTable('+st+',22)">'+th_texts[st][4]+'</a></th><th class="message"><a href="javascript:sortTable('+st+',24)">'+th_texts[st][2]+'</a></th><th class="message"><a href="javascript:sortTable('+st+',25)">'+th_texts[st][3]+'</a></th><th class="message"><a href="javascript:sortTable('+st+',30)">'+th_texts[st][6]+'</a></th><th class="message"><a href="javascript:sortTable('+st+',12)">'+th_texts[st][5]+"</a></th>"}else{l+='<th class="message"><a href="javascript:sortTable('+st+',22)">'+th_texts[st][3]+'</a></th><th class="message" colspan="2"><a href="javascript:sortTable('+st+',24)">'+th_texts[st][2]+'</a></th><th class="message"><a href="javascript:sortTable('+st+',30)">'+th_texts[st][5]+'</a></th><th class="message"><a href="javascript:sortTable('+st+',12)">'+th_texts[st][4]+"</a></th>"}if(updateMode=="customerInternal"){l+='<th class="message"><a href="javascript:sortTable('+st+',48)">'+th_texts[st][8]+"</a></th>"}l+='<th class="message timestamp"><a href="javascript:sortTable('+st+',44)">'+th_texts[st][9]+"</a></th>";if(updateMode=="himuser"){l+='<th><a title="'+tFollowupMessages+'">'+th_texts[st][10]+"</a></th>"}l+="</tr>";for(var n=0;n<him[st].length;n++){if(him[st][n][21]==true&&him[st][n][26]==true){icon=(him[st][n][1]!=null)?countryIcons[him[st][n][1]]+" ":"";no=him[st][n][0]+1;l+='<tr id="messageTableRowForMessageNumber_'+no+'" >';l+='<td class="icon first"><img src="'+messageTypeCode[him[st][n][2]].src+'" alt="" style="width:16px;height:16px"></td>';l+='<td class="nr">'+no+"</td>";l+=(him[st][n][11]==true)?createServicedaysCalendar(st,n):createDatePeriod(st,n);if(him[st][n][20]==0||him[st][n][20]==5){l+='<td class="dep">'+him[st][n][3]+'&nbsp;</td><td class="arr">'+him[st][n][4]+"&nbsp;</td>"}else{if(him[st][n][20]!=4){l+='<td class="dep" colspan="2">'+icon+him[st][n][3]+"</td>"}}if(him[st][n][20]==4){l+='<td class="products" colspan="4">'+createMessageText(st,n)+"</td>"}else{if(fts&&ftsResultColorize){if(st==5){mot=(him[st][n][53]==null)?"&nbsp;":him[st][n][53]}else{l+='<td class="message">'+createProductIcons(st,n,53)+"</td>"}}else{if(st==5){mot=(him[st][n][30]==null)?"&nbsp;":him[st][n][30]}else{l+='<td class="products">'+createProductIcons(st,n,30)+"</td>"}}if(st==5){l+='<td class="message">'+mot+"&nbsp;</td>"}l+='<td class="message">'+createMessageText(st,n)+"</td>"}l+=(updateMode=="customerInternal")?createID(st,n):"";if(him[st][n][43]!=null){var d=him[st][n][43].split(" ");var m=d[0].split(".")[0];var j=d[0].split(".")[1];var p=d[0].split(".")[2].substring(2,4);var k=d[1].split(":")[0];var g=d[1].split(":")[1];var b=d[1].split(":")[2];var a=m+"."+j+"."+p+"<br>"+k+":"+g}else{var a="&nbsp;"}l+='<td class="message timestamp">'+a+"</td>";if(updateMode=="himuser"){l+="<td>";var f="";var i=urlHimInfoAbsolute+"action=show_followup_messages&numberObjects=1&objectState_0=1&object.0="+him[st][n][48]+"&buttonShowMessageHierarchySelected&popupVersion";if(him[st][n][49]==0){if(him[st][n][50].length>0){l+="<a href=\"javascript:openPopup('"+i+"','',50,50,800,600,'001000')\">"+imgFollowupRoot+"</a>"}else{l+="&nbsp;"}}else{if(him[st][n][50].length>0){l+="<a href=\"javascript:openPopup('"+i+"','',50,50,800,600,'001000')\">"+imgFollowupNode+"</a>"}else{l+="<a href=\"javascript:openPopup('"+i+"','',50,50,800,600,'001000')\">"+imgFollowupLeaf+"</a>"}}l+="</td>"}l+="</tr>";if((st==4||st==3)&&archiv==false&&mapIsGlobal==true){selectForeignMessages(him[st][n][0],him[st][n][1],him[st][n][3])}}}l+='<tr><td colspan="'+c+'" style="border:none;line-height:10px;">&nbsp;</td></tr>'}}l+="</table>";e("himTable").innerHTML=l;if(archiv==false&&mapIsGlobal==true){displayForeignMessages()}}function selectForeignMessages(a,c,b){if(typeof nnm[c]=="undefined"){nnm[c]=new Array(a,1,b)}else{nnm[c][1]++}}function displayForeignMessages(){fmCode="";for(var a=0;a<nnm.length;a++){if(typeof nnm[a]!="undefined"){if(a==80||a==81||a==83||a==87){if(e("macro"+a)){e("macro"+a).innerHTML=countryIcons[a]+' <a style="text-decoration:none;" href="#himMessagesForeignCountry" onclick="sortTable(3,1,'+a+')">'+nnm[a][2]+"</a>&nbsp;"+nnm[a][1]}}else{fmCode+=countryIcons[a]+' <a style="text-decoration:none;" href="#himMessagesForeignCountry" onclick="sortTable(3,1,'+a+')">'+nnm[a][2]+"</a>&nbsp;"+nnm[a][1]+"<br>"}}}if(fmCode.length>0){if(e("macroMs")){e("macroMs").style.display=""}if(e("fmm")){e("fmm").innerHTML=fmCode}}else{if(e("macroMs")){e("macroMs").style.display="none"}}}function sortTable(b,a){if(arguments[2]){uicSort=parseInt(arguments[2])}if(sr[b][a]==0){sr[b][a]=(uicSort!=null)?0:1;sortBy=a;him[b].sort(compare)}else{sr[b][a]=(uicSort!=null)?1:0;sortBy=a;him[b].sort(compare2)}if(e("messageTable")&&e("himTable")&&e("himTable").hasChildNodes()){e("himTable").removeChild(e("messageTable"))}drawTable();uicSort=null}function initialSortTable(){sortBy=22;him[0].sort(compareInitial);him[1].sort(compareInitial);him[2].sort(compareInitial);him[4].sort(compareInitial);him[5].sort(compareInitial);sortBy=24;him[3].sort(compareInitial)}function compare2(a,b){return compare(b,a)}function compareInitial(a,c){if(sortBy==24){return compare(a,c)}var b=(1*typeIndexMapping[c[2]]-1*typeIndexMapping[a[2]]);if(b==0){return compare(c,a)}return(b)}function compare(a,b){res=0;if(isNaN(a[sortBy])==false&&isNaN(b[sortBy])==false){if(a[sortBy]==uicSort&&uicSort!=null){res=-1}else{if(b[sortBy]==uicSort&&uicSort!=null){res=1}else{res=b[sortBy]-a[sortBy]}}}else{if(isNaN(a[sortBy])==false){res=-1}else{if(isNaN(b[sortBy])==false){res=1}else{if(a[sortBy].toLowerCase()<b[sortBy].toLowerCase()){res=-1}else{if(b[sortBy].toLowerCase()<a[sortBy].toLowerCase()){res=1}else{if(a[sortBy]<b[sortBy]){res=-1}else{if(b[sortBy]<a[sortBy]){res=1}}}}}}}return(res)}function createServicedaysCalendar(a,b){return'<td valign="top"><span onmouseover="createCalDiv(\''+him[a][b][5]+"."+him[a][b][6]+"."+him[a][b][7]+"','"+him[a][b][8]+"."+him[a][b][9]+"."+him[a][b][10]+"','"+him[a][b][41]+"');tooltip( event, 'calendar_container' )\">"+imgCalendar+"</span></td>"}function createDatePeriod(a,b){return'<td class="date">'+him[a][b][5]+"."+him[a][b][6]+"."+him[a][b][7]+"&nbsp;"+unTillText+"&nbsp;"+him[a][b][8]+"."+him[a][b][9]+"."+him[a][b][10]+"<br>"+him[a][b][14]+":"+him[a][b][15]+":"+him[a][b][16]+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+him[a][b][17]+":"+him[a][b][18]+":"+him[a][b][19]+"</td>"}function createMessageText(a,c){if(him[a][c][45]!=null){curLabel=him[a][c][45].split("|")}else{curLabel=""}messageLink="";if(him[a][c][28]!=null){curUrl=him[a][c][28].split("|");for(var b=0;b<curUrl.length;b++){if(b==0){messageLink+="<br><br>"+linkText+":"}messageLink+='<br><a href="'+curUrl[b]+'" target="_blank">';if(b<curLabel.length){messageLink+=curLabel[b]}else{messageLink+=linkText}messageLink+="</a>"}}if(fts&&ftsResultColorize){return"<strong>"+him[a][c][51]+"</strong><br>"+him[a][c][52]+messageLink}else{return"<strong>"+him[a][c][12]+"</strong><br>"+him[a][c][13]+messageLink}}function createID(a,b){idText=(him[a][b][48]!=null)?him[a][b][48]:"&nbsp;";return'<td class="message">'+idText+"</td>"}function createProductIcons(d,g,b){var a="";var c=new Array();var h=(him[d][g][b]!=null)?him[d][g][b].split(","):new Array();for(var f=0;f<h.length;f++){c.push(productSpans[h[f]])}if(h.length>0){a+=c.join(" ")}else{a+=" "}return a}function tooltipActiveMouseMove(b){if(!b){b=window.event}var g=document.getElementById("tipDiv");var h=document.getElementById("tipFrame");var f=absLeft(g);var j=absTop(g);var d=f+g.offsetWidth;var i=j+g.offsetHeight;scrollPos=getScrollPos();var c=b.clientX+scrollPos.x;var a=b.clientY+scrollPos.y;if((c<f)||(c>d)||(a<j)||(a>i)){document.onmousemove=null;document.body.removeChild(g);if(h){document.body.removeChild(h)}}}function getWindowWidth(){if(self.innerWidth){return self.innerWidth}else{if(document.documentElement&&document.documentElement.clientWidth){return document.documentElement.clientWidth}else{if(document.body){return document.body.clientWidth}}}}function getWindowHeight(){if(self.innerHeight){return self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){return document.documentElement.clientHeight}else{if(document.body){return document.body.clientHeight}}}}function getScrollPos(){if(document.body.scrollTop!=undefined){var b=document.compatMode!="CSS1Compat";var a=b?document.body:document.documentElement;return{x:a.scrollLeft,y:a.scrollTop}}else{return{x:window.pageXOffset,y:window.pageYOffset}}}function tooltip(b,p,h){if(!b){b=window.event}var c=document.getElementById(p);var i=c.innerHTML;var j=document.getElementById("tipDiv");var n=document.getElementById("tipFrame");if(j){document.body.removeChild(j)}if(n){document.body.removeChild(n)}j=document.createElement("div");scrollPos=getScrollPos();j.setAttribute("id","tipDiv");j.className="tooltip";j.style.display="block";j.style.padding="5px";j.style.visibility="visible";document.body.appendChild(j);j.innerHTML=i;if(undefined!=h){var f=b.target;if(!f){f=b.srcElement}while(f&&((f.nodeName!="A")&&(f.nodeName!="a"))){f=f.parentNode}if(f&&(undefined!=f.href)){j.innerHTML+='<div><a href="'+f.href+'" >'+h+"</a></div>"}}var d=0;var a=0;if(p=="calendar_container"){d=-50;a=50}var l=getWindowHeight()-20;var o=getWindowWidth()-20;var k=1*b.clientY+scrollPos.y+a-j.offsetHeight;var g=1*b.clientX+scrollPos.x+d;var q=j.offsetWidth;var m=j.offsetHeight;if((q+g)>=o){g=o-q}if(g<scrollPos.x){g=scrollPos.x}if((m+k)>=l+scrollPos.y){k=scrollPos.y+l-m}if(k<scrollPos.y){k=scrollPos.y}j.style.top=k+"px";j.style.left=g+"px";if(navigator.appName.search(/Explorer/)!=-1){n=document.createElement("iframe");n.setAttribute("id","tipFrame");n.setAttribute("src","about:blank");n.setAttribute("scrolling","no");n.setAttribute("frameborder","0");n.style.top=j.style.top;n.style.left=j.style.left;n.style.width=j.offsetWidth;n.style.height=j.offsetHeight;n.style.position="absolute";n.style.zIndex=254;document.body.appendChild(n)}document.onmousemove=tooltipActiveMouseMove}function bitfield(c,d){var a="";for(var b=0;((b<c.length)&&(c.length==d.length));b++){a=a+d[b]+((c.substr(b,1)=="1")?"=yes":"=no")+((b+1<c.length)?",":"")}return a}function openPopup(b,k,m,j,c,o,f){var g=new Array("location","menubar","scrollbars","status","resizable","toolbar");f=bitfield(f,g);var n=b.indexOf("//");if(n>=0){var a=b.substring(0,n);b=b.substring(n+2,b.length);n=b.indexOf("/");b=b.substring(n,b.length);var i=a.concat("//");var d=i.concat(window.location.host);var l=d.concat(b);b=l}var h=window.open(b,k,"top="+m+",left="+j+",width="+c+",height="+o+f);h.focus(self)};
