Sergej: javascript:openLiveHelp(1) geht nicht?

Beitrag lesen

Hier mal der Quellcode für den openLiveHelp Part aus der livehelp_js.php

//-----------------------------------------------------------------
// opens live help
function openLiveHelp(department)
{
  if(openDHTMLlayer == 1)
    destroyLayer('mylayer<?php echo intval($UNTRUSTED['department']); ?>Div');
  openDHTMLlayer = 0;
  openDHTMLalready = true;
  csTimeout=0;
  <?php if ($identity['COOKIE_SET'] == "Y") { ?>
    window.open(WEBPATH + 'livehelp.php?department=' + department + '&cslhVISITOR=<?php echo $identity['SESSIONID']; ?><?php echo $querystringadd; ?>', 'chat54050872', 'width=585,height=390,menubar=no,scrollbars=1,resizable=1');
  <?php } else { ?>
    window.open(WEBPATH + 'livehelp.php?department=' + department + '<?php echo $querystringadd; ?>', 'chat54050872', 'width=585,height=390,menubar=no,scrollbars=1,resizable=1');
  <?php } ?>
}

function getKeys_<?php echo intval($UNTRUSTED['department']); ?>(){
   if (ismac > -1){
      w3 = document.getElementById("imageformac_hun").width;
      w2 = document.getElementById("imageformac_ten").width;
      w1 = document.getElementById("imageformac_one").width;

if(w1 == 0){
        makeVisible('imagesfordumbmac');
        w1 = document.getElementById("imageformac_one").width;
        makeInvisible('imagesfordumbmac');
      }

if(w2 == 0){
        makeVisible('imagesfordumbmac');
        w2 = document.getElementById("imageformac_ten").width;
        makeInvisible('imagesfordumbmac');
      }

if(w3 == 0){
        makeVisible('imagesfordumbmac');
        w3 = document.getElementById("imageformac_hun").width;
        makeInvisible('imagesfordumbmac');
      }

} else {
      w3 = keyhundreds.width;
      w2 = keytens.width;
      w1 = keyones.width;
    }

if(w1<100) w1 = 100;
    if(w2<100) w2 = 100;
    if(w3<100) w3 = 100;
   // alert('w1='+w1+'w2='+w2+'w3='+w3);

total = ((w3-100)*100) + ((w2-100)*10) + (w1-100);

// alert(total);
    openDHTML_<?php echo intval($UNTRUSTED['department']); ?>(total);
}