var keepstatic=1; var menucolor="#75C5F0"; var submenuwidth=150; var global_cbox_online_status_unavailable= false; function dummy_Validator() { return true; } function setPointer(theRow, theRowNum, theAction, theDefaultColor, thePointerColor, numofCols) { var theCells = null; if ((thePointerColor == '') || typeof(theRow.style) == 'undefined') return false; if (typeof(document.getElementsByTagName) != 'undefined') theCells = theRow.getElementsByTagName('td'); else if (typeof(theRow.cells) != 'undefined') theCells = theRow.cells; else return false; var rowCellsCnt = theCells.length; if(numofCols!=0) rowCellsCnt=numofCols; var domDetect = null; var currentColor = null; var newColor = null; if (typeof(window.opera) == 'undefined' && typeof(theCells[0].getAttribute) != 'undefined') { currentColor = theCells[0].getAttribute('bgcolor'); domDetect = true; } else { currentColor = theCells[0].style.backgroundColor; domDetect = false; } if (theAction == 'over' && thePointerColor != '') newColor = thePointerColor; if (theAction == 'out') newColor = theDefaultColor; if (newColor) { var c = null; if (domDetect) { for (c = 0; c < rowCellsCnt; c++) { theCells[c].setAttribute('bgcolor', newColor, 0); } } else { for (c = 0; c < rowCellsCnt; c++) { theCells[c].style.backgroundColor = newColor; } } } return true; } function MM_preloadImages() { var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= 0 && ua.indexOf(nos) < 0) { this.isIE = true; this.version = parseFloat(ua.substr(i + s.length)); return; } s = "Netscape6/"; if ((i = ua.indexOf(s)) >= 0) { this.isNS = true; this.version = parseFloat(ua.substr(i + s.length)); return; } s = "Gecko"; if ((i = ua.indexOf(s)) >= 0) { this.isNS = true; this.version = 6.1; return; } } function set_none(el) { el.style.display='none'; } function set_block(el) { el.style.display='block'; } function toggle_block(el) { el.style.display=((el.style.display=='block')?'none':'block'); } function in_array (val,arr) { var i; for (i=0;i 0 && test.indexOf("function") != -1) { test= new String(theas[i].ondoubleclick); if (test.length > 0 && test.indexOf("function") != -1) { theas[i].onclick= theas[i].ondoubleclick; theas[i].ondoubleclick= null; } } } } function set_styles (el, styles) { var i; var vals, matches; for (i=0;i clientX/Y fuer den firefox) var e= false; // Daten des anzuzeigenden Users var data= false; // SIP-ID des Users var sid= false; // lang var cbox_lang= false; var cbox_cust= ""; // Stoppt das Timeout zum Anzeigen der Box function stop_in () { if (in_timeout) { clearTimeout(in_timeout); in_timeout= false; e= false; } } // Startet das Timeout zum Ausblenden der Box function start_out () { out_timeout= setTimeout("exec_out()", 400); } // Stoppt das Timeout zum Ausblenden der Box function stop_out () { if (out_timeout) { clearTimeout(out_timeout); out_timeout= false; } } // Blendet die Box aus function exec_out () { if (document.getElementById('cbox')) { document.body.removeChild( document.getElementById('cbox') ); } if (out_timeout) { clearTimeout(out_timeout); out_timeout= false; } cbox_x= 0; cbox_y= 0; } // Startet das Timeout zum Anzeigen der Box function start_in (event, name, a_data, c_id, imp, s_id, cblang, cb_online, cb_fax) { if (!event) { event= window.event; } cbox_x= event.clientX + document.body.scrollLeft; cbox_y= event.clientY + document.body.scrollTop;; if ((new Browser()).isIE) { cbox_x+= document.documentElement.scrollLeft; cbox_y+= document.documentElement.scrollTop; } if (cbox_x <= 20) cbox_x= 20; if (cbox_y <= -10) cbox_y= -10; data= a_data; sid= s_id; cbox_lang= cblang; if (a_data) { in_timeout= setTimeout("exec_in('"+ name +"', '"+ c_id +"', "+ ( (imp) ? "true" : "false" ) + ", '"+ cb_online +"', "+ ( (cb_fax) ? "\""+ cb_fax +"\"" : "false" ) +")", 200); } else { in_timeout= setTimeout("exec_in('"+ name +"', false)", 200); } } // Zeigt die Box an function exec_in (name, id, imp, online, fax) { var div= document.createElement("div"); var output= ""; var i; var bgcolor= ""; div.id= "cbox"; div.style.border= '1px solid #999999'; div.style.position= "absolute"; div.style.zIndex= "1000"; div.style.margin= "0"; div.style.padding= "0"; div.style.width= "370px"; div.style.left= cbox_x + 20; div.style.top= cbox_y + 10; var line_type, line_section, line_val, line_shortid; var lines_output= ""; var cell= false; var mail= false; if (id) { // bek. kontakt for (i=0;i'; lines_output+= ''+ actions2(line_type, line_value, 1, 1, 1) +''; } output+= '
'; output+= ' '; if (cell) { output+= ''; output+= ' '; } if (mail) { output+= ' '; } if (online == "offnet") { output+= ' '; } if (fax) { output+= ' '; } output+= '
'; output+= '
'; output+= ' 0) { } output+= '>  '; output+= ''+ name +''; if (global_cbox_online_status_unavailable && (online == "online" || online == "offline")) { output+= cbox_cust; output+= ' '; } else { if (online == "online") { output+= cbox_cust; output+= ' '; } else if (online == "offline") { output+= cbox_cust; output+= ' '; } } output+= '
'; output+= ''; output+= lines_output; output+= ''; output+= ''; output+= ''; output+= ''; output+= ''; output+= '
'+ cbox_showc +''+ cbox_editc +'
'; } else { // unbek. output+= '
'; output+= ' '; output+= '
'; output+= ''+ cbox_savec +''; output+= '
'; } div.innerHTML= output; div.onmouseover= stop_out; div.onmouseout= start_out; document.body.appendChild(div); } // debug... function debug () { var output= "
";

  output+= "sip-id:         "+ sid + "\n";
  output+= "in_timeout:     "+ ( (in_timeout) ? "set" : "unset" ) + "\n" ;
  output+= "out_timeout:    "+ ( (out_timeout) ? "set" : "unset" ) + "\n\n" ;

  output+= "event:          "+ ( (cbox_x && cbox_y) ? ("x: "+ cbox_x + ", y: "+ cbox_y) : "unset" ) + "" ;
    
  output+= "
"; document.getElementById('debug').innerHTML= output; setTimeout('debug()', 100); } function actions2 (type, val, id) { var retval= ""; ; type= type.toLowerCase(); if (type=="fax") type="telefon"; switch (type) { case "telefon": case "phone": case "voip": { retval+= ""+ val +""; break; } case "handy": case "mobile": case "cell": { retval= ""+ val +""; break; } case "e-mail": { retval= ""+ val +""; break; } case "fax": { retval= ""+ val +""; break; } default: { retval= val; break; } } return retval+"  "; } function set_title(to) { document.title= to; } function submit_data_to (opts) { var ___div= document.createElement("div"); var ___form= document.createElement("form"); var ___inputs= new Array(); ___div.style.position= "absolute"; ___div.style.display= "none"; ___div.style.height= 0; ___div.style.width= 0; ___form.name= opts['name']; ___form.method= opts['method']; ___form.action= opts['action']; for (inputname in opts['inputs']) { ___inputs.push(document.createElement("input")); ___inputs[___inputs.length-1].type= "hidden"; ___inputs[___inputs.length-1].name= inputname; ___inputs[___inputs.length-1].value= opts['inputs'][inputname]; ___form.appendChild(___inputs[___inputs.length-1]); } ___div.appendChild(___form); document.body.appendChild(___div); ___form.submit(); } function draw_modal (txt) { var _modal= document.createElement("div"); var _bg= document.createElement("div"); _modal.style.width= "200px"; _modal.style.border= "1px solid black"; _modal.style.borderRight= "2px solid black"; _modal.style.borderBottom= "2px solid black"; _modal.style.background= "#f7f7f7"; _modal.style.fontSize= "10pt"; _modal.style.padding= "10px"; _modal.style.position= "absolute"; _modal.style.top= "50%"; _modal.style.left= "50%"; _modal.marginTop= "-50%"; _modal.marginLeft= "-50px"; _modal.innerHTML= txt; document.body.appendChild(_modal); return new Array(_modal/*, _bg*/); } function remove_modal (_objects) { var i; for (i=0;i<_objects.length;++i) { document.body.removeChild(_objects[i]); } }