//172091936//
//-------Including modul_dependence.js--------//
function ShadowObjectList(FORM,RANKING,DEPENDENCE){this.Ranking=RANKING;this.Dependence=DEPENDENCE;this.Objects=new Array();this.Unclean=new Array();this.newDepend=_ShadowObjectList_newDepend;this.check=_ShadowObjectList_check;var property;var p;for(var i=0;i<this.Ranking.length;i++){if(FORM.elements[this.Ranking[i]]!=null&&FORM.elements[this.Ranking[i]].type=="select-one"){this.Objects[this.Ranking[i]]=new ShadowObject(FORM.elements[this.Ranking[i]]);this.Unclean[this.Unclean.length]=this.Objects[this.Ranking[i]].getSelectedValue()}}for(var i=0;i<this.Dependence.length;i++){this.newDepend(i,this.Dependence[i])}this.check()}function _ShadowObjectList_newDepend(DependId,DEPEND){var d=DEPEND.split(":");for(var n=1;n<d.length;n++){var a=d[n].split("-");if(this.Objects[a[0]]!=null){this.Objects[a[0]].newDepend(DependId,a[1])}else{}}}function _ShadowObjectList_check(OBJ){if(typeof first!="undefined"){if(first==true){first=false}}if(OBJ!=undefined&&OBJ.selectedIndex>-1){var proptest=OBJ.options[OBJ.selectedIndex].value;var ptest;this.Unclean[this.Unclean.length]=OBJ.options[OBJ.selectedIndex].value}var next;var next1;while(this.Unclean.length>0){for(var j=0;j<this.Unclean.length;j++){text+=this.Unclean[j]}var val=this.Unclean.splice(0,1);var d=val[0].split("-");var NAME=d[0];var text="";var ID=d[1];if(this.Objects[NAME]!=null){var UndoRef=this.Objects[NAME].UndoList;while(UndoRef.length>0){var val=UndoRef.splice(0,1);var a=val[0].split("-");this.Objects[a[0]].unlockOption(a[2],a[1]);this.Objects[a[0]].refresh(a[0])}var RefObj=this.Objects[NAME].getOption(ID);var Depend=RefObj.DependList;for(var i=0;i<Depend.length;i++){var UndoList=new Array();var UndoIndex=new Array();var DependId=Depend[i];var d=this.Dependence[DependId].split(":");var l=1;for(var n=1;n<d.length-1;n++){var a=d[n].split("-");var prop;if(this.Objects[a[0]]){prop=this.Objects[a[0]].getSelectedValue()}else{}if(d[n]==prop){l++;if(UndoList[a[0]]==null){UndoIndex[UndoIndex.length]=a[0]}UndoList[a[0]]=this.Objects[a[0]].UndoList}}if(l==d.length-1){var a=d[d.length-1].split("-");next=this.Objects[a[0]].lockOption(DependId,a[1]);for(var j=0;j<UndoIndex.length;j++){UndoList[UndoIndex[j]][UndoList[UndoIndex[j]].length]=d[d.length-1]+"-"+DependId}if(next!=null){this.Unclean[this.Unclean.length]=next;for(var j=0;j<this.Unclean.length;j++){text+=this.Unclean[j]}}this.Objects[a[0]].refresh(a[0])}UndoList=null;UndoIndex=null}}}}function _ShadowObjectList_showState(){var x=Math.random(10);var y=Math.random(10);win=window.open("","dependstate"+x+y,"resizable=1, menubar=0,toolbar=1,status=0,scrollbars=yes,width=800,height=800");win.document.open();win.document.write("<html><body>");for(i=0;i<this.Ranking.length;i++){win.document.write("<dl><dt>"+this.Ranking[i]+"</dt>");for(j=0;j<this.Objects[this.Ranking[i]].OptionList.length;j++){win.document.write("<dd>");if(this.Objects[this.Ranking[i]].OptionList[j].islocked()==true){win.document.write("<u>"+this.Objects[this.Ranking[i]].OptionList[j].text+"</u>&nbsp;/&nbsp;"+this.Objects[this.Ranking[i]].OptionList[j].value)}else{if((this.Objects[this.Ranking[i]].RealObject.selectedIndex>-1)&&(this.Objects[this.Ranking[i]].OptionList[j].value==this.Objects[this.Ranking[i]].RealObject.options[this.Objects[this.Ranking[i]].RealObject.selectedIndex].value)){win.document.write("<b>"+this.Objects[this.Ranking[i]].OptionList[j].text+"</b>&nbsp;/&nbsp;"+this.Objects[this.Ranking[i]].OptionList[j].value);win.document.write(" Undo:");for(m=0;m<this.Objects[this.Ranking[i]].UndoList.length;m++){win.document.write(this.Objects[this.Ranking[i]].UndoList[m]+" | ")}}else{win.document.write(""+this.Objects[this.Ranking[i]].OptionList[j].text+"&nbsp;/&nbsp;"+this.Objects[this.Ranking[i]].OptionList[j].value)}}for(k=0;k<this.Objects[this.Ranking[i]].OptionList[j].LockList.length;k++){win.document.write("<dl>");win.document.write("<dd><b>"+this.Objects[this.Ranking[i]].OptionList[j].LockList[k]+"</b> <i>"+this.Dependence[this.Objects[this.Ranking[i]].OptionList[j].LockList[k]]+"</i></dd>");win.document.write("</dl>")}win.document.write("</dd>\n")}win.document.write("</dl>")}win.document.write("</body></html>");win.document.close();win.focus()}function ShadowObject(OBJ){this.RealObject=OBJ;this.mustRefresh=false;this.OptionList=new Array();this.OptionIndex=new Array();this.UndoList=new Array();this.lockOption=_ShadowObject_lockOption;this.unlockOption=_ShadowObject_unlockOption;this.newDepend=_ShadowObject_newDepend;this.getOption=_ShadowObject_getOption;this.refresh=_ShadowObject_Refresh;this.getSelectedValue=_ShadowObject_getSelectedValue;for(var i=0;i<OBJ.options.length;i++){var a=OBJ.options[i].value.split("-");this.OptionIndex[a[1]]=this.OptionList.length;this.OptionList[this.OptionList.length]=new ShadowOption(OBJ.options[i])}}function _ShadowObject_lockOption(DependId,ID){var i=0;var changeSelect=false;while(i<this.RealObject.options.length){var a=this.RealObject.options[i].value.split("-");if(a[1]==ID){if(i==this.RealObject.selectedIndex){changeSelect=true}this.RealObject.options[i]=null;this.mustRefresh=true}i++}if(this.OptionList[this.OptionIndex[ID]]!=null){this.OptionList[this.OptionIndex[ID]].lock(DependId)}if(changeSelect==true&&this.RealObject.options.length>0){this.RealObject.selectedIndex=0;var value=this.RealObject.options[this.RealObject.selectedIndex].value;return value}else{return null}}function _ShadowObject_unlockOption(DependId,ID){if(this.OptionList[this.OptionIndex[ID]]!=null){this.OptionList[this.OptionIndex[ID]].unlock(DependId);this.mustRefresh=true}}function _ShadowObject_Refresh(NAME){if(this.mustRefresh==false){return true}var SelectedValue="";SelectedValue=this.getSelectedValue();this.RealObject.options.length=0;this.RealObject.selectedIndex=-1;for(var i=0;i<this.OptionList.length;i++){if(this.OptionList[i].islocked()==false){var txt=this.OptionList[i].text;var val1=this.OptionList[i].value;var val2=this.OptionList[i].value;this.RealObject.options[this.RealObject.options.length]=new Option(txt,val1);if(val2==SelectedValue){this.RealObject.selectedIndex=this.RealObject.options.length-1}}}this.mustRefresh=false}function _ShadowObject_newDepend(DependId,ID){if(this.OptionList[this.OptionIndex[ID]]!=null){this.OptionList[this.OptionIndex[ID]].newDepend(DependId)}}function _ShadowObject_getOption(ID){return this.OptionList[this.OptionIndex[ID]]}function _ShadowObject_getSelectedValue(){if(this.RealObject.selectedIndex>-1){return this.RealObject.options[this.RealObject.selectedIndex].value}else{return""}}function ShadowOption(OBJ){this.value=OBJ.value;this.text=OBJ.text;this.LockList=new Array();this.DependList=new Array();this.lock=_ShadowOption_lock;this.unlock=_ShadowOption_unlock;this.islocked=_ShadowOption_islocked;this.newDepend=_ShadowOption_newDepend}function _ShadowOption_lock(DependId){this.LockList[this.LockList.length]=DependId}function _ShadowOption_unlock(DependId){var i=0;while(i<this.LockList.length){if(this.LockList[i]==DependId){var x=this.LockList.splice(i,1)}else{i++}}}function _ShadowOption_islocked(){if(this.LockList.length>0){return true}else{return false}}function _ShadowOption_newDepend(DependId){this.DependList[this.DependList.length]=DependId};
//-------Including modul_actions.js--------//
function over(name){var obj=document.getElementsByName(name)[0];if(obj){var src=obj.src;var off=src.lastIndexOf("off");if(off!=-1){var newsrc=src.substring(0,off)+"on";obj.src=newsrc+".gif"}}}function out(name){var obj=document.getElementsByName(name)[0];if(obj){var src=obj.src;var on=src.lastIndexOf("on");if(on!=-1){var newsrc=src.substring(0,on)+"off";obj.src=newsrc+".gif"}}}function over_up(name){var obj=document.getElementsByName(name)[0];if(obj){var src=obj.src;var gif=src.lastIndexOf(".gif");if(gif!=-1){var newsrc=src.substring(0,gif)+"_over";obj.src=newsrc+".gif"}obj.style.border="1px solid #ee9b1f"}}function out_up(name){var obj=document.getElementsByName(name)[0];if(obj){var src=obj.src;var over=src.lastIndexOf("_over");if(over!=-1){var newsrc=src.substring(0,over);obj.src=newsrc+".gif";obj.style.border="1px solid #003399"}}}function PlausiArray(FORMOBJ,DESCRIPT){if(typeof(FORMOBJ)!="object"){alert("Konfigurationsfehler! Init Form: "+FORMOBJ);this.formobj=null}else{this.formobj=FORMOBJ}if(DESCRIPT){this.descript=DESCRIPT}else{this.descript=null}this.arr=new Array();this.load=_PlausiArrayLoad;this.add=_PlausiArrayAdd;this.check=_PlausiArrayCheck}function _PlausiArrayCheck(){var i=0;var rc=true;while(i<this.arr.length&&rc==true){rc=this.arr[i].check();i++}return rc}function _PlausiArrayLoad(LIST){for(var i=0;i<LIST.length;i++){this.add(LIST[i][0],LIST[i][1],LIST[i][2],LIST[i][3],LIST[i][4],LIST[i][5])}}function _PlausiArrayAdd(MYOBJTYPE,NAME,MSGID,PAR1,PAR2,PAR3,PAR4){if(this.formobj.elements[NAME]){var msg="";if(this.descript!=null&&this.descript[MSGID]){msg=this.descript[MSGID]}var OBJ=eval(MYOBJTYPE);this.arr[this.arr.length]=new OBJ(this.formobj,NAME,msg,PAR1,PAR2,PAR3,PAR4)}else{alert("Konfigurationsfehler! '"+NAME+"' ist kein Objekt")}}function RANGE(FORM,NAME,MSG,MIN,MAX){if(typeof(FORM.elements[MIN])!="object"||typeof(FORM.elements[MAX])!="object"){alert("Konfigurationsfehler: Rangeobject: "+NAME);this.obj=null}else{this.obj=FORM.elements[NAME];this.min=FORM.elements[MIN];this.max=FORM.elements[MAX]}this.msg=MSG;this.error=_errorMessage;this.check=_RangeObjectCheck}function _RangeObjectCheck(){if(this.obj==null){return false}var test=this.min.value+" - "+this.max.value;this.obj.value=(this.obj.value);if((this.obj.value!=test)&&(parseInt(this.obj.value)>=parseInt(this.min.value))&&(parseInt(this.obj.value)<=parseInt(this.max.value))){return true}else{this.error();return false}}function _errorMessage(){if(this.msg){alert(this.msg)}}var zaehler=1;var position=1;function neueintrag_blink(){if(zaehler>=8){window.clearInterval("zaehler",1500)}else{if(position==1){document.getElementById("guestbook").className="viewClassGuestbook";document.getElementById("guestbook").innerHTML=sGuestbook;position=2;zaehler++}else{document.getElementById("guestbook").className="viewClassGuestbookblink";document.getElementById("guestbook").innerHTML=sGuestbookblink;position=1;zaehler++}}};
//-------Including getOrderData.js--------//
function getOrderData(){this.url=new String();this.pg=new String("refreshOrderOverview");this.params=new String();this.method=new String("GET");this.onError=function(msg){alert("Error!\n\n"+msg)};this.ShowMessage=function(msg){alert("Message:\n\n"+msg)};this.onSuccess=successHandler;this.eval_scripts=new Boolean();this.key=new String();this.value=new String();this.id=new String();this.secid=new String();this.code=new String();this.cmd=new String();this.selectedproduct=new String();this.category=new String();this.product_value=new String();this.filename=new String();this.ordernumber=new String();this.active_country=new String();this.jobpage=new String();function successHandler(txt,xml){this.ShowMessage(txt)}}getOrderData.prototype.refreshJobOffers=function(){this.url=startpage_plain+"cgi-bin/ajax.cgi";if(this.id.length==0){this.onError("calling without id");return false}if(this.pg.length==0){this.onError("calling without pg");return false}if(this.cmd.length==0){this.onError("calling without cmd");return false}this.params="sid="+this.id+"&pg="+this.pg+"&cmd="+this.cmd+"&jobpage="+this.jobpage+"&active_country="+this.active_country;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};getOrderData.prototype.isFileUploaded=function(){this.url="/";this.pg="upload";this.cmd="filecheck";if(this.method.length==0){this.method="GET"}else{this.method=this.method.toUpperCase()}if(this.id.length==0){this.onError("calling without id");return false}if(this.filename.length==0){this.onError("calling without file name");return false}if(this.ordernumber.length==0){this.onError("calling without order number");return false}this.params="sid="+this.id+"&pg="+this.pg+"&cmd="+this.cmd+"&fileuploadname="+this.filename+"&ordernumber="+this.ordernumber;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};getOrderData.prototype.getUploadedFileSize=function(){this.url="/";this.pg="upload";this.cmd="getUploadedBytes";if(this.method.length==0){this.method="GET"}else{this.method=this.method.toUpperCase()}if(this.id.length==0){this.onError("calling without id");return false}if(this.filename.length==0){this.onError("calling without file name");return false}if(this.ordernumber.length==0){this.onError("calling without order number");return false}this.params="sid="+this.id+"&pg="+this.pg+"&cmd="+this.cmd+"&fileuploadname="+this.filename+"&ordernumber="+this.ordernumber;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};getOrderData.prototype.getLiveCounterString=function(){this.url=startpage_plain+"cgi-bin/ajax.cgi";this.pg="liveshopping_livecounter";this.cmd="getLiveShoppingCounter";if(this.method.length==0){this.method="GET"}else{this.method=this.method.toUpperCase()}this.params="sid="+this.id+"&pg="+this.pg+"&cmd="+this.cmd;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};getOrderData.prototype.checkCode=function(){this.url=startpage_plain+"cgi-bin/ajax.cgi";this.pg="token";this.cmd="check";this.category="ORD";if(this.method.length==0){this.method="GET"}else{this.method=this.method.toUpperCase()}if(this.code.length==0){this.onError("calling without code");return false}if(this.id.length==0){this.onError("calling without id");return false}if(this.selectedproduct.length==0){this.onError("calling without selected product");return false}this.params="sid="+this.id+"&pg="+this.pg+"&cmd="+this.cmd+"&code="+this.code+"&selectedproduct="+this.selectedproduct+"&category="+this.category;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};getOrderData.prototype.getTokenValue=function(){this.url=startpage_plain+"cgi-bin/ajax.cgi";this.pg="token";this.cmd="gettokenvalue";this.category="ORD";if(this.method.length==0){this.method="GET"}else{this.method=this.method.toUpperCase()}if(this.code.length==0){this.onError("calling without code");return false}if(this.id.length==0){this.onError("calling without id");return false}this.params="sid="+this.id+"&pg="+this.pg+"&cmd="+this.cmd+"&code="+this.code+"&category="+this.category;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};getOrderData.prototype.getMinValueString=function(){this.url=startpage_plain+"cgi-bin/ajax.cgi";this.pg="token";this.cmd="minvaluestring";this.category="ORD";if(this.method.length==0){this.method="GET"}else{this.method=this.method.toUpperCase()}if(this.code.length==0){this.onError("calling without code");return false}if(this.id.length==0){this.onError("calling without id");return false}this.params="sid="+this.id+"&pg="+this.pg+"&cmd="+this.cmd+"&code="+this.code+"&category="+this.category;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};getOrderData.prototype.getWrongProductString=function(){this.url=startpage_plain+"cgi-bin/ajax.cgi";this.pg="token";this.cmd="wrongproductstring";this.category="ORD";if(this.method.length==0){this.method="GET"}else{this.method=this.method.toUpperCase()}if(this.code.length==0){this.onError("calling without code");return false}if(this.id.length==0){this.onError("calling without id");return false}this.params="sid="+this.id+"&pg="+this.pg+"&cmd="+this.cmd+"&code="+this.code+"&category="+this.category;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};getOrderData.prototype.getAddress=function(){this.url=startpage_plain+"cgi-bin/ajax.cgi";this.cmd="address";if(this.method.length==0){this.method="GET"}else{this.method=this.method.toUpperCase()}if(this.id.length==0){this.onError("calling without id");return false}if(this.value.length==0){this.onError("calling without value");return false}this.params="cmd="+this.cmd+"&sid="+this.id+"&pg="+this.pg+"&value="+this.value;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};getOrderData.prototype.getProductPropertys=function(){this.url=startpage_plain+"cgi-bin/ajax.cgi";this.cmd="change_product";if(this.id.length==0){this.onError("calling without id");return false}if(this.method.length==0){this.method="GET"}else{this.method=this.method.toUpperCase()}this.params="sid="+this.id+"&cmd="+this.cmd+"&value="+this.product_value;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};getOrderData.prototype.getCallBackTime=function(day){this.url=startpage_plain+"cgi-bin/ajax.cgi";this.cmd="callbacktime";this.day=day;if(this.method.length==0){this.method="GET"}else{this.method=this.method.toUpperCase()}if(this.id.length==0){this.onError("calling without id");return false}this.params="sid="+this.id+"&cmd="+this.cmd+"&day="+this.day;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};getOrderData.prototype.validateEvaluationOrderNumber=function(){this.url=startpage_plain+"cgi-bin/ajax.cgi";this.cmd="validateordernumber";if(this.method.length==0){this.method="GET"}else{this.method=this.method.toUpperCase()}if(this.id.length==0){this.onError("calling without id");return false}if(this.value.length==0){this.onError("calling without order number");return false}this.params="sid="+this.id+"&cmd="+this.cmd+"&value="+this.value;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};getOrderData.prototype.getThumbnail=function(){this.url=startpage_plain+"cgi-bin/ajax.cgi";this.cmd="showthumbnail";if(this.id.length==0){this.onError("calling without id");return false}if(this.key.length==0){this.onError("calling without key");return false}if(this.value.length==0){this.onError("calling without value");return false}this.params="sid="+this.id+"&cmd="+this.cmd+"&key="+this.key+"&secid="+this.secid+"&value="+this.value;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};function getXMLHttpRequest(){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(window.ActiveXObject){var versions=["Msxml2.XMLHTTP.7.0","Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(var idx=0;idx<versions.length;idx++){try{return new ActiveXObject(versions[idx])}catch(objException){}}}}}function evalScript(scripts){try{if(scripts!=""){var script="";scripts=scripts.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi,function(){if(scripts!==null){script+=arguments[1]+"\n"}return""});if(script){(window.execScript)?window.execScript(script):window.setTimeout(script,0)}}return false}catch(e){alert(e)}}getOrderData.prototype.setUploadComplete=function(transm_id,ordrnum,order_code){this.url=startpage_plain+"cgi-bin/ajax.cgi";this.transm_id=transm_id;this.ordrnum=ordrnum;this.order_code=order_code;if(this.method.length==0){this.method="GET"}else{this.method=this.method.toUpperCase()}if(this.id.length==0){this.onError("calling without id");return false}this.params="sid="+this.id+"&cmd="+this.cmd+"&transid="+this.transm_id+"&ordrnum="+ordrnum+"&order_code="+order_code;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};getOrderData.prototype.getUploadParams=function(){this.url=startpage_plain+"cgi-bin/ajax.cgi";this.cmd="getUploadParams";if(this.method.length==0){this.method="POST"}else{this.method=this.method.toUpperCase()}if(this.id.length==0){this.onError("calling without id");return false}this.params="sid="+this.id+"&cmd="+this.cmd;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();ResponseText=xmlHttpRequest.responseText;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};getOrderData.prototype.do_upload_kill=function(transmission_id,order_number,order_code){var aim=startpage_plain+"cgi-bin/ajax.cgi";var params="sid="+s_sid+"&cmd=upload_kill&transid="+transmission_id+"&order_nmbr="+order_number+"&order_code="+order_code;new Ajax.Request(aim,{parameters:params,onSuccess:function(response){if(response.responseText.length>0){close_upload_win();$("bug1").options[$("bug1").selectedIndex].value=order_number+"#"+response.responseText+"#"+order_code}}})};getOrderData.prototype.set_transmission_in_out=function(transmission_id,state,order_nmbr,order_code){var aim=startpage_plain+"cgi-bin/ajax.cgi";var params="sid="+this.id+"&cmd=set_transmission&transid="+transmission_id+"&order_nmbr="+order_nmbr+"&state="+state+"&order_code="+order_code;new Ajax.Request(aim,{parameters:params})};getOrderData.prototype.get_deleted_files=function(){var aim=startpage_plain+"cgi-bin/ajax.cgi";var params="sid="+this.id+"&cmd=get_deleted_files";new Ajax.Request(aim,{parameters:params,onSuccess:function(response){if(response.responseText.length>0){show_buttons_by_upload_result(response.responseText)}}})};getOrderData.prototype.confirm_dispatch=function(s_sid,s_cmd,s_transm_id,s_order_num){var aim=startpage_plain+"cgi-bin/ajax.cgi";var params="sid="+s_sid+"&cmd="+s_cmd+"&transid="+s_transm_id+"&order_nmbr="+s_order_num;if(s_cmd&&s_cmd.match(/confirm_[a-z]{3,5}/)){var xhr=new Ajax.Request(aim,{parameters:params,onSuccess:function(response){if(response.responseText.length>0&&response.responseText==1){close_dispatch_win(1);return true}}})}else{if(s_cmd&&s_cmd.match(/data_dispatch_/)){var i_height=250;if(s_cmd.match(/_ftp/)){i_height=120}var xhr=new Ajax.Request(aim,{parameters:params,onSuccess:function(response){if(response.responseText.length>0){show_result(response,i_height)}}})}}};getOrderData.prototype.send_properties=function(properties){this.url=startpage_plain+"cgi-bin/ajax.cgi";this.cmd="send_properties";if(this.method.length==0){this.method="POST"}else{this.method=this.method.toUpperCase()}if(this.id.length==0){this.onError("calling without id");return false}this.params="sid="+this.id+"&cmd="+this.cmd+"&"+properties;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();ResponseText=xmlHttpRequest.responseText;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText);initialize();if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};
//-------Including StartTrueTalk.js--------//
function openPopupTrueTalk(url,name){name=name+Math.round(Math.random()*1000);openPopup(url,name)}function openPopup(url,name){var win="width=364,height=400,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,";if(checkBrowserName("opera")){var x=(parseInt(fensterweite())/2)-193;var y=234;win+="left="+x+",top="+y+",screenX=0,screenY=0"}else{if(brows=="ie"){var x=(parseInt(getBrowserX())+(parseInt(fensterweite())/2))-191;var y=parseInt(getBrowserY())+201;win+="left="+x+",top="+y+",screenX=0,screenY=0"}else{if(checkBrowserName("chrome")){var x=((parseInt(fensterweite())/2)+parseInt(getBrowserX()))-181;var y=parseInt(getBrowserY())+311;win+="left="+x+",top="+y+""}else{if(checkBrowserName("safari")){var x=((parseInt(fensterweite())/2)+parseInt(getBrowserX()))-181;var y=parseInt(getBrowserY())+331;win+="left="+x+",top="+y+""}else{var x=((parseInt(fensterweite())/2)+parseInt(getBrowserX()))-181;var y=parseInt(getBrowserY())+300;win+="left="+x+",top="+y+",screenX=0,screenY=0"}}}}window.open(url,name,win)};
//-------Including browser_position.js--------//
var version=parseFloat(navigator.appVersion),agent=navigator.userAgent.toLowerCase();var opera=(agent.indexOf("opera")!=-1)?true:false;var ie=((document.all)&&(version>=4)&&(!opera))?true:false;var nn4=document.layers?true:false;var dom=(document.getElementById&&!document.all)?true:false;function getBrowserX(){if(ie||opera){if(typeof(window.screenLeft)=="undefined"){return 0}else{return(window.screenLeft)}}else{if(dom||nn4){if(typeof(window.screenX)=="undefined"){return 0}else{return(window.screenX)}}else{return 0}}}function getBrowserY(){if(ie||opera){if(typeof(window.screenTop)=="undefined"){return 0}else{return(window.screenTop)}}else{if(dom||nn4){if(typeof(window.screenY)=="undefined"){return 0}else{return(window.screenY)}}else{return 0}}}function fensterweite(){if(window.innerWidth){return window.innerWidth}else{if(document.body&&document.body.offsetWidth){return document.body.offsetWidth}else{return 0}}}function fensterhoehe(){if(window.innerHeight){return window.innerHeight}else{if(document.body&&document.body.offsetHeight){return document.body.offsetHeight}else{return 0}}};
//-------Including callback.js--------//
function getCallBackHours(){var day=document.getElementById("date").value;with(new getOrderData()){id=sid;onSuccess=writeNewTimes;getCallBackTime(day)}}function writeNewTimes(response){var sResponse=new String(response);var times=new Array();times=sResponse.split("#");var oSelectBox1=document.getElementById("from");var oSelectBox2=document.getElementById("until");while(oSelectBox1.options.length>0){oSelectBox1.selectedIndex=-1;oSelectBox1.options[0]=null}while(oSelectBox2.options.length>0){oSelectBox2.selectedIndex=-1;oSelectBox2.options[0]=null}if(times[0]==1){var del=times.shift();delete del;for(var i=0;i<=times.length-2;i++){var oNewOption=new Option();oNewOption.text=times[i];oNewOption.value=times[i];document.getElementById("from").options[document.getElementById("from").length]=oNewOption}for(var i=1;i<=times.length-1;i++){var oNewOption=new Option();oNewOption.text=times[i];oNewOption.value=times[i];document.getElementById("until").options[document.getElementById("until").length]=oNewOption}}else{for(var i=0;i<=times.length-2;i++){var oNewOption=new Option();oNewOption.text=times[i]+" "+oClock;oNewOption.value=times[i];document.getElementById("from").options[document.getElementById("from").length]=oNewOption}for(var i=1;i<=times.length-1;i++){var oNewOption=new Option();oNewOption.text=times[i]+" "+oClock;oNewOption.value=times[i];document.getElementById("until").options[document.getElementById("until").length]=oNewOption}}}function checkSent(){if(document.getElementById("sent").value==1){window.self.close()}}function clear_input(target,color){if(target.value==defaultNumber||target.value==defaultOrderId||target.value==defaultName||target.value==defaultComment){color=color?color:"#000000";target.value="";target.style.color=color}}var wasSent=0;function validateCallBack(openingTime){var now=new Date();var fromHour;var fromMinute;var untilHour;var untilMinute;var selectedDate=document.getElementById("date").value;selectedDate=selectedDate.substr(0,2);var selectedFrom=document.getElementById("from").value;var selectedFromHour=selectedFrom.substr(0,2);var selectedFromMinute=selectedFrom.substr(3,5);var selectedUntil=document.getElementById("until").value;var selectedUntilHour=selectedUntil.substr(0,2);var selectedUntilMinute=selectedUntil.substr(3,5);if(wasSent==1){return false}if(now.getDate()!=openingTime.getDate()){location.reload(true);return false}if(selectedFrom==selectedUntil){return false}if(now.getDate()==selectedDate){if(selectedFromHour<=selectedUntilHour){fromHour=selectedFromHour;fromMinute=selectedFromMinute;untilHour=selectedUntilHour;untilMinute=selectedUntilMinute;if(fromHour==untilHour&&untilMinute<fromMinute){return false}}else{return false}if(fromHour<now.getHours()){location.reload(true);return false}}var name=document.getElementById("name").value;var phone=document.getElementById("phone").value;if(name==""||phone==""||phone==defaultNumber){return false}if(document.getElementById("order_id").value==defaultOrderId){document.getElementById("order_id").value=""}if(document.getElementById("callBackText").value==defaultComment){document.getElementById("callBackText").value=""}wasSent=1;return true}function openCallBackWin(url){win=",";if(checkBrowserName("opera")){var x=(parseInt(fensterweite())/2)-193;var y=234;win+="left="+x+",top="+y+",screenX=0,screenY=0"}else{if(brows=="ie"){var x=(parseInt(getBrowserX())+(parseInt(fensterweite())/2))-191;var y=parseInt(getBrowserY())+201;win+="left="+x+",top="+y+",screenX=0,screenY=0"}else{if(checkBrowserName("chrome")){var x=((parseInt(fensterweite())/2)+parseInt(getBrowserX()))-181;var y=parseInt(getBrowserY())+311;win+="left="+x+",top="+y+""}else{if(checkBrowserName("safari")){var x=((parseInt(fensterweite())/2)+parseInt(getBrowserX()))-181;var y=parseInt(getBrowserY())+331;win+="left="+x+",top="+y+""}else{var x=((parseInt(fensterweite())/2)+parseInt(getBrowserX()))-181;var y=parseInt(getBrowserY())+300;win+="left="+x+",top="+y+",screenX=0,screenY=0"}}}}callBack=window.open(url,"ServiceCallBack","resizable=no, menubar=no,toolbar=no,status=no,scrollbars=auto,width=364,height=400"+win);callBack.focus()};
//-------Including ajax.js--------//
function createRequestObject(){var browser=navigator.appName;var ro;if(browser=="Microsoft Internet Explorer"){ro=new ActiveXObject("Microsoft.XMLHTTP")}else{ro=new XMLHttpRequest()}return ro};
//-------Including setOrderData.js--------//
function setOrderData(){this.url=new String();this.pg=new String();this.params=new String();this.method=new String("GET");this.cmd=new String();this.onError=function(msg){alert("Error!\n\n"+msg)};this.ShowMessage=function(msg){alert("Message:\n\n"+msg)};this.onSuccess=successHandler;this.MessageText=new String();this.ExitPoint=new String();this.id=new String;function successHandler(txt,xml){this.ShowMessage(txt)}}setOrderData.prototype.SetSuggestion=function(){this.url=startpage_plain+"cgi-bin/ajax.cgi";if(this.method.length==0){this.method="GET"}else{this.method=this.method.toUpperCase()}if(this.MessageText.length==0){this.onError("calling without Message text");return false}if(this.cmd.length==0){this.onError("calling without cmd");return false}if(this.ExitPoint.length==0){this.onError("calling without exit point");return false}if(this.id.length==0){this.onError("calling without id");return false}this.MessageText=encodeURI(this.MessageText);this.params="sid="+this.id+"&pg="+this.pg+"&cmd="+this.cmd+"&MessageText="+this.MessageText+"&ExitPoint="+this.ExitPoint;var _this=this;var xmlHttpRequest=getXMLHttpRequest();if(!xmlHttpRequest){this.onError("Es konnte kein XMLHttpRequest-Objekt erstellt werden.");return false}switch(this.method){case"GET":xmlHttpRequest.open(this.method,this.url+"?"+this.params,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Pragma","no-cache");xmlHttpRequest.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequest.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequest.setRequestHeader("Expires",0);xmlHttpRequest.send(null);break;case"POST":xmlHttpRequest.open(this.method,this.url,true);xmlHttpRequest.onreadystatechange=readyStateHandler;xmlHttpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlHttpRequest.send(this.params);break}function readyStateHandler(){if(xmlHttpRequest.readyState<4){return false}if(xmlHttpRequest.status==200||xmlHttpRequest.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequest.responseText;ResponseXml=xmlHttpRequest.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml)}}}};function getXMLHttpRequest(){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(window.ActiveXObject){var versions=["Msxml2.XMLHTTP.7.0","Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(var idx=0;idx<versions.length;idx++){try{return new ActiveXObject(versions[idx])}catch(objException){}}}}};
//-------Including ajaxOrderProcess.js--------//
function OrderProcess(){this.url=new String(startpage_plain+"cgi-bin/ajaxOrderProcess.cgi");this.id=new String("");this.cmd=new String("");this.orderLineID=new String("");this.newItemName=new String("");this.params=new String();this.key=new String();this.value=new String();this.method=new String("GET");this.onError=function(msg){alert("Error!\n\n"+msg)};this.ShowMessage=function(msg){alert("Message:\n\n"+msg)};this.onSuccess=successHandler;this.eval_scripts=new Boolean();this.OrderCode=new String();this.searchForColour=new Number();function successHandler(txt,xml){this.ShowMessage(txt)}}OrderProcess.prototype.searchColourItem=function(color_value,color_system,color_facing){this.cmd="searchColourItem";this.pg="orderSpecialColours";this.params="sid="+this.id+"&pg="+this.pg+"&cmd="+this.cmd+"&color_value="+color_value+"&color_system="+color_system+"&color_facing="+color_facing;var xhr=new Ajax.Request(this.url,{parameters:this.params,onSuccess:function(response){if(response.responseText.length>0){document.getElementById("color_item").value=response.responseText;if(checkOrderStep()==true){document.orderform.submit()}}else{if(portalShortCut=="p24"){if(color_system=="Pantone"){title_Farbangabe=title_FarbangabePantone}else{title_Farbangabe=title_FarbangabeHKS}var text_eingabefehler_farbe="<div style='width:350px;'>"+alert_eingabefehler_farbwert+"</div>";MessageShow("","",text_eingabefehler_farbe,title_Farbangabe,false,button_zur_farbauswahl);layerswitch()}else{MessageShow(261,365,alert_eingabefehler_farbwert)}}}})};OrderProcess.prototype.getRefreshedInvoiceDetails=function(){this.cmd="getInvoiceDetails";if(!checkDefaultParams(this)){return false}this.params="sid="+this.id+"&cmd="+this.cmd+"&key="+this.key+"&value="+this.value;var _this=this;xmlHttpRequestOrderProcess=getXMLHttpRequestForOrderProcess();if(!xmlHttpRequestOrderProcess){this.onError("Es konnte kein xmlHttpRequestOrderProcess-Objekt erstellt werden.");return false}xmlHttpRequestOrderProcess.open(this.method,this.url+"?"+this.params,true);xmlHttpRequestOrderProcess.onreadystatechange=readyStateHandler;xmlHttpRequestOrderProcess.setRequestHeader("Pragma","no-cache");xmlHttpRequestOrderProcess.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequestOrderProcess.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequestOrderProcess.setRequestHeader("Expires",0);xmlHttpRequestOrderProcess.send(null);function readyStateHandler(){if(xmlHttpRequestOrderProcess.readyState<4){return false}if(xmlHttpRequestOrderProcess.status==200||xmlHttpRequestOrderProcess.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequestOrderProcess.responseText;ResponseXml=xmlHttpRequestOrderProcess.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};OrderProcess.prototype.get_keyaccount_page=function(){this.cmd="get_keyaccount_page";if(!checkDefaultParams(this)){return false}this.params="sid="+this.id+"&cmd="+this.cmd+"&value="+this.value;var _this=this;xmlHttpRequestOrderProcess=getXMLHttpRequestForOrderProcess();if(!xmlHttpRequestOrderProcess){this.onError("Es konnte kein xmlHttpRequestOrderProcess-Objekt erstellt werden.");return false}xmlHttpRequestOrderProcess.open(this.method,this.url+"?"+this.params,true);xmlHttpRequestOrderProcess.onreadystatechange=readyStateHandler;xmlHttpRequestOrderProcess.setRequestHeader("Pragma","no-cache");xmlHttpRequestOrderProcess.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequestOrderProcess.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequestOrderProcess.setRequestHeader("Expires",0);xmlHttpRequestOrderProcess.send(null);function readyStateHandler(){if(xmlHttpRequestOrderProcess.readyState<4){return false}if(xmlHttpRequestOrderProcess.status==200||xmlHttpRequestOrderProcess.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequestOrderProcess.responseText;ResponseXml=xmlHttpRequestOrderProcess.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};OrderProcess.prototype.scDeletePosition=function(){this.orderstep="osc";this.usrcmd="scDeletePosition";this.params="sid="+this.id+"&orderstep="+this.orderstep+"&orderLineID="+this.orderLineID+"&cmd="+this.usrcmd;var _this=this;var xmlHttpRequestOrderProcess=getXMLHttpRequestForOrderProcess();if(!xmlHttpRequestOrderProcess){this.onError("Es konnte kein xmlHttpRequestOrderProcess-Objekt erstellt werden.");return false}xmlHttpRequestOrderProcess.open(this.method,this.url+"?"+this.params,true);xmlHttpRequestOrderProcess.onreadystatechange=readyStateHandler;xmlHttpRequestOrderProcess.setRequestHeader("Pragma","no-cache");xmlHttpRequestOrderProcess.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequestOrderProcess.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequestOrderProcess.setRequestHeader("Expires",0);xmlHttpRequestOrderProcess.send(null);function readyStateHandler(){if(xmlHttpRequestOrderProcess.readyState<4){return false}if(xmlHttpRequestOrderProcess.status==200||xmlHttpRequestOrderProcess.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequestOrderProcess.responseText;ResponseXml=xmlHttpRequestOrderProcess.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};OrderProcess.prototype.scCopyPosition=function(){this.orderstep="osc";this.usrcmd="scCopyPosition";this.params="sid="+this.id+"&orderstep="+this.orderstep+"&orderLineID="+this.orderLineID+"&cmd="+this.usrcmd;var _this=this;var xmlHttpRequestOrderProcess=getXMLHttpRequestForOrderProcess();if(!xmlHttpRequestOrderProcess){this.onError("Es konnte kein xmlHttpRequestOrderProcess-Objekt erstellt werden.");return false}xmlHttpRequestOrderProcess.open(this.method,this.url+"?"+this.params,true);xmlHttpRequestOrderProcess.onreadystatechange=readyStateHandler;xmlHttpRequestOrderProcess.setRequestHeader("Pragma","no-cache");xmlHttpRequestOrderProcess.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequestOrderProcess.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequestOrderProcess.setRequestHeader("Expires",0);xmlHttpRequestOrderProcess.send(null);function readyStateHandler(){if(xmlHttpRequestOrderProcess.readyState<4){return false}if(xmlHttpRequestOrderProcess.status==200||xmlHttpRequestOrderProcess.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequestOrderProcess.responseText;ResponseXml=xmlHttpRequestOrderProcess.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};OrderProcess.prototype.scSaveItemName=function(){this.orderstep="osc";this.usrcmd="scSaveItemName";this.params="sid="+this.id+"&orderstep="+this.orderstep+"&orderLineID="+this.orderLineID+"&newItemName="+this.newItemName+"&cmd="+this.usrcmd;var _this=this;var xmlHttpRequestOrderProcess=getXMLHttpRequestForOrderProcess();if(!xmlHttpRequestOrderProcess){this.onError("Es konnte kein xmlHttpRequestOrderProcess-Objekt erstellt werden.");return false}xmlHttpRequestOrderProcess.open(this.method,this.url+"?"+this.params,true);xmlHttpRequestOrderProcess.onreadystatechange=readyStateHandler;xmlHttpRequestOrderProcess.setRequestHeader("Pragma","no-cache");xmlHttpRequestOrderProcess.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequestOrderProcess.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequestOrderProcess.setRequestHeader("Expires",0);xmlHttpRequestOrderProcess.send(null);function readyStateHandler(){if(xmlHttpRequestOrderProcess.readyState<4){return false}if(xmlHttpRequestOrderProcess.status==200||xmlHttpRequestOrderProcess.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequestOrderProcess.responseText;ResponseXml=xmlHttpRequestOrderProcess.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};OrderProcess.prototype.scGenerateProductDescription=function(){this.orderstep="osc";this.usrcmd="scGenerateProductDescription";this.params="sid="+this.id+"&orderstep="+this.orderstep+"&orderLineID="+this.orderLineID+"&cmd="+this.usrcmd;var _this=this;var xmlHttpRequestOrderProcess=getXMLHttpRequestForOrderProcess();if(!xmlHttpRequestOrderProcess){this.onError("Es konnte kein xmlHttpRequestOrderProcess-Objekt erstellt werden.");return false}xmlHttpRequestOrderProcess.open(this.method,this.url+"?"+this.params,true);xmlHttpRequestOrderProcess.onreadystatechange=readyStateHandler;xmlHttpRequestOrderProcess.setRequestHeader("Pragma","no-cache");xmlHttpRequestOrderProcess.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequestOrderProcess.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequestOrderProcess.setRequestHeader("Expires",0);xmlHttpRequestOrderProcess.send(null);function readyStateHandler(){if(xmlHttpRequestOrderProcess.readyState<4){return false}if(xmlHttpRequestOrderProcess.status==200||xmlHttpRequestOrderProcess.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequestOrderProcess.responseText;ResponseXml=xmlHttpRequestOrderProcess.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};OrderProcess.prototype.getUploadParams=function(){this.cmd="getUploadParams";this.params="sid="+this.id+"&cmd="+this.cmd;var _this=this;var xmlHttpRequestOrderProcess=getXMLHttpRequestForOrderProcess();if(!xmlHttpRequestOrderProcess){this.onError("Es konnte kein xmlHttpRequestOrderProcess-Objekt erstellt werden.");return false}if(navigator.userAgent.match(/\bSafari\b/)&&navigator.userAgent.match(/\bWindows\b/)){xmlHttpRequestOrderProcess.open(this.method,this.url+"?"+this.params,false)}else{xmlHttpRequestOrderProcess.open(this.method,this.url+"?"+this.params,true)}xmlHttpRequestOrderProcess.onreadystatechange=readyStateHandler;xmlHttpRequestOrderProcess.setRequestHeader("Pragma","no-cache");xmlHttpRequestOrderProcess.setRequestHeader("Cache-Control","must-revalidate");xmlHttpRequestOrderProcess.setRequestHeader("If-Modified-Since",document.lastModified);xmlHttpRequestOrderProcess.setRequestHeader("Expires",0);xmlHttpRequestOrderProcess.send(null);function readyStateHandler(){if(xmlHttpRequestOrderProcess.readyState<4){return false}if(xmlHttpRequestOrderProcess.status==200||xmlHttpRequestOrderProcess.status==304){if(_this.onSuccess){var ResponseText=new String();var ResponseXml=new String();ResponseText=xmlHttpRequestOrderProcess.responseText;ResponseXml=xmlHttpRequestOrderProcess.responseXML;ResponseText=ResponseText.replace(/\n/g,"");ResponseText=ResponseText.replace(/\r/g,"");_this.onSuccess(ResponseText,ResponseXml);if(_this.eval_scripts==true&&ResponseText.length>0){evalScript(ResponseText)}}}}};function checkDefaultParams(oThis){if(oThis.cmd.length==0){oThis.onError("calling without cmd");return false}if(oThis.id.length==0){oThis.onError("calling without id");return false}return true}function getXMLHttpRequestForOrderProcess(){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(window.ActiveXObject){var versions=["Msxml2.XMLHTTP.7.0","Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(var idx=0;idx<versions.length;idx++){try{return new ActiveXObject(versions[idx])}catch(objException){}}}}}function evalScript(scripts){try{if(scripts!=""){var script="";scripts=scripts.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi,function(){if(scripts!==null){script+=arguments[1]+"\n"}return""});if(script){(window.execScript)?window.execScript(script):window.setTimeout(script,0)}}return false}catch(e){alert(e)}};
//-------Including tooltips.js--------//
var brows="";if(Prototype.Browser.IE){brows="ie"}else{if(Prototype.Browser.Gecko){brows="ff"}else{if(Prototype.Browser.WebKit){brows="sf"}else{brows="ff"}}}function checkBrowserName(name){var agent=navigator.userAgent.toLowerCase();if(agent.indexOf(name.toLowerCase())>-1){return true}else{return false}}function tooltip_show(obj,kind){var screenWidth=getDocWidth();var screenHeight=getDocHeight();if(obj=="bestbuy"){var tt_image=$("tt_image");if(tt_image){var left="left";var x=positionKorrekturBestbuy(left,kind);var y=positionKorrekturBestbuy("top",kind);tt_image.setStyle({visibility:"visible",left:x+"px",top:y+"px"})}}else{var fromLeft=parseInt($(obj).cumulativeOffset()[0])+20;var fromTop=$(obj).cumulativeOffset()[1];if((document.URL.search("unitedprint")!=-1)||(document.URL.search("impressaounida")!=-1)){var fromLeft=parseInt($(obj).cumulativeOffset()[0])+17}if(document.URL.search("easyprint")!=-1){var fromLeft=parseInt($(obj).cumulativeOffset()[0])-105;var fromTop=parseInt($(obj).cumulativeOffset()[1])-132}else{fromLeft=positionKorrektur("left",fromLeft);fromTop=positionKorrektur("top",fromTop)}var ttNameSplitt=$(obj).parentNode.id.split("_");var ttName;if(ttNameSplitt.length>2){ttName=ttNameSplitt[1];for(var i=2;i<ttNameSplitt.length;i++){ttName+="_"+ttNameSplitt[i]}}else{ttName=(ttNameSplitt[1])?ttNameSplitt[1]:obj.id}var tooltip_name=($("big_tt")&&ttName=="format")?"big_tt":"tt_"+ttName;if(kind=="sticky"){tooltip_name=($("big_tt")&&ttName=="format")?"big_tt":"tt_"+ttName;if($(tooltip_name).innerHTML.search("closebutton")<0){var button="<div class='closebutton' onmouseup='tooltip_hide(this);'></div>";$(tooltip_name).innerHTML=button+$(tooltip_name).innerHTML;if(document.getElementById("calcContent")){var blueAngel="<div id='blueAngel'></div>";var blueAngelProduct=(document.calcform.hd_item_group_name.value=="letterhead")||(document.calcform.hd_item_group_name.value=="flyer")||(document.calcform.hd_item_group_name.value=="compliment slips")||(document.calcform.hd_item_group_name.value=="note pad")||(document.calcform.hd_item_group_name.value=="desk pad")||(document.calcform.hd_item_group_name.value=="brochure")||(document.calcform.hd_item_group_name.value=="magazine")||(document.calcform.hd_item_group_name.value=="postcard")||(document.calcform.hd_item_group_name.value=="envelope");if(country!="US"&&country!="CA"){if(blueAngelProduct&&(ttName=="papier"||ttName=="papierU")){$(tooltip_name).innerHTML=blueAngel+$(tooltip_name).innerHTML}}}}if(tooltip_name=="tt_content"){fromLeft-=5;fromTop-=16;$("tt_content").setStyle({width:"164"})}}else{if(kind=="feedback"){tooltip_name="tt_"+ttName;fromLeft-=(parseInt($(tooltip_name).getWidth())+22);if(document.URL.search("printwhat")!=-1){fromLeft-=3}if(document.URL.search("easyprint")!=-1){fromLeft+=125;fromTop+=132}if(document.URL.search("getprint")!=-1){fromLeft=parseInt($(obj).cumulativeOffset()[0])-parseInt($(tooltip_name).getWidth()+3);fromTop=parseInt($(obj).cumulativeOffset()[1])}}else{if(document.getElementById("printOffert")&&(document.URL.search("getprint")!=-1)){fromTop+=100}else{if(kind=="address_specifications"){var tt_nr=$(obj).id.split("_")[4];var tt_nr_po=$(obj).id.split("_")[3];var tt_address_specifications="address_specifications_"+tt_nr_po+"_"+tt_nr;if($(tt_address_specifications)){var diff=(brows=="ie")?2:14;var fromLeft=parseInt($(obj).cumulativeOffset()[0]);var fromTop=$(obj).cumulativeOffset()[1]+20;var left="left";if(document.URL.search("easyprint")>0){diff=(brows=="ie")?2:14;fromLeft=parseInt($(obj).cumulativeOffset()[0])-35;fromTop=$(obj).cumulativeOffset()[1]}else{if(brows=="ie"&&(document.URL.search("printwhat")>0||document.URL.search("easyprint")>0)){diff=(brows=="ie")?2:14;fromLeft=parseInt($(obj).cumulativeOffset()[0])-12;fromTop=$(obj).cumulativeOffset()[1]-30}else{if(brows=="ie"&&(document.URL.search("getprint")>0)){diff=(brows=="ie")?2:14;fromLeft=parseInt($(obj).cumulativeOffset()[0])-11;fromTop=$(obj).cumulativeOffset()[1]-30}else{if(brows=="ie"&&(document.URL.search("firstprint")>0)){diff=(brows=="ie")?2:14;fromLeft=parseInt($(obj).cumulativeOffset()[0])-47;fromTop=$(obj).cumulativeOffset()[1]-30}else{if(brows=="ie"&&(document.URL.search("print24")>0)){diff=(brows=="ie")?2:14;fromLeft=parseInt($(obj).cumulativeOffset()[0])+50;fromTop=$(obj).cumulativeOffset()[1]-30}else{if(document.URL.search("print24")>0){fromLeft=parseInt($(obj).cumulativeOffset()[0])+50;if(brows=="ie"){fromTop=$(obj).cumulativeOffset()[1]-30}if(brows=="ff"){fromTop=$(obj).cumulativeOffset()[1]-2}}}}}}}if($(tt_address_specifications).getStyle("visibility")=="hidden"){$(tt_address_specifications).setStyle({visibility:"visible",left:fromLeft+"px",top:fromTop+"px"})}else{$(tt_address_specifications).setStyle({visibility:"hidden"})}}}else{if($("OSOLine_layer_editAddress_Icon")){if(brows=="sf"){fromTop=$(obj).cumulativeOffset()[1]+22;fromLeft=$(obj).cumulativeOffset()[1]+553;$(tooltip_name).setStyle({marginTop:fromTop,marginLeft:fromLeft})}}}}}}if(kind=="head"){tooltip_name="tt_"+ttName;fromLeft=(parseInt($(obj).cumulativeOffset()[0])+parseInt($(obj).getWidth())+3);fromTop-=3}if((kind!="feedback"&&$(obj.id))&&(kind!="address_specifications"&&$(obj.id))){var tooltipSize=$(tooltip_name).getWidth();var borderDist=parseInt(screenWidth)-parseInt($(obj.id).cumulativeOffset()[0]);if(borderDist<tooltipSize){fromLeft=fromLeft-$(tooltip_name).getWidth()-$(obj.id).getWidth()-5}}if($(tooltip_name)){$(tooltip_name).setStyle({visibility:"visible",left:fromLeft+"px",top:fromTop+"px"})}}}function tooltip_hide(obj){var ttNameSplitt=(obj.parentNode.id)?obj.parentNode.id.split("_"):"";var ttName;if(ttNameSplitt==""){ttName=obj.id}else{if(ttNameSplitt.length>2){ttName=ttNameSplitt[1];for(var i=2;i<ttNameSplitt.length;i++){ttName+="_"+ttNameSplitt[i]}}else{ttName=(ttNameSplitt[1])?ttNameSplitt[1]:obj.id}}var tooltip_name=(ttName=="tt")?"big_tt":"tt_"+ttName;$(tooltip_name).setStyle({visibility:"hidden"})}function centerIT(obj,sizeX,sizeY){if(sizeX==0){sizeX=parseInt($(obj).getWidth())}if(sizeY==0){sizeY=parseInt($(obj).getHeight())}var centerKoord=(brows=="ie")?new Array($(document.body).getDimensions().width/2-sizeX/2,$(document.body).getDimensions().height/2-sizeY/2):new Array(document.viewport.getDimensions().width/2-sizeX/2,document.viewport.getDimensions().height/2-sizeY/2);return centerKoord}function center_position(from,size){if(from=="left"){var pop_w=size;var pos=(getDocWidth()-pop_w)/2}else{if(from=="top"){var pop_h=size;var pos=(checkBrowserName("opera"))?(window.outerHeight-pop_h)/2:(screen.availHeight-pop_h)/2;pos=(checkBrowserName("chrome"))?pos+45:pos}}return pos}function getDocHeight(){var D=document;return Math.max(Math.max(D.body.scrollHeight,D.documentElement.scrollHeight),Math.max(D.body.offsetHeight,D.documentElement.offsetHeight),Math.max(D.body.clientHeight,D.documentElement.clientHeight))}function getDocWidth(){var D=document;return Math.max(Math.max(D.body.scrollWidth,D.documentElement.scrollWidth),Math.max(D.body.offsetWidth,D.documentElement.offsetWidth),Math.max(D.body.clientWidth,D.documentElement.clientWidth))};
//-------Including message.js--------//
var isMessageLayers=new Boolean();var sMessageLayer=new String("MessageLayer");var sMessageLayerTitle=new String("MessageTitle");var sMessageLayerBackround=new String("MessageLayerBackround");var sMessageLayerText=new String("MessageLayerText");var sMessageButtonOK=new String("MessageButtonOK");var sPreloader=new String("Preloader");var aPreloader=new String("p24_Preloader");var oMessageLayer=null;var oMessageLayerMove=null;var oMessageLayerBg=null;var oMessageLayerText=null;var iMessageTopOriginal=new Number();var isMessageMovable=true;var iMouseX=new Number();var iMouseY=new Number();var iOffsetX=new Number();var iOffsetY=new Number();var IE=document.all&&!window.opera;var DOM=document.getElementById&&!IE;isMessageLayers=false;if(document.getElementById(sMessageLayer)&&$(sMessageLayerBackround)&&document.getElementById(sMessageLayerText)){oMessageLayer=document.getElementById(sMessageLayer);oMessageLayerBg=$(sMessageLayerBackround);oMessageLayerText=document.getElementById(sMessageLayerText);isMessageLayers=true;MessageHide()}function MessageShow(iMessageTop,iMessageWidth,sMessageText,sMessageTitle,isMessageMovable,s_button,bCheck){var winId="";if(typeof("isExitClick")=="string"){isExitClick=false}if(bCheck){winId="check"}if(portalShortCut=="p24"){sMessageText="<div style='line-height: 14px;'>"+sMessageText+"</div>";s_button="<div style='margin-top: 15px; display: block; width: 347px; height: 20px;'>"+s_button+"</div>";var win=openLayer("","s",iMessageTop,portalShortCut,winId,sMessageTitle,0);win.setTextContent(sMessageText+" "+s_button)}else{if(isMessageLayers==true){var oArgs=MessageShow.arguments;switch(oArgs.length){case 4:if(typeof(sMessageTitle)==typeof(isMessageMovable)){isMessageMovable=sMessageTitle}break;case 5:break}var iWindowCenterHorz=iMessageTop;var iWindowCenterVert=0;iMessageTopOriginal=iWindowCenterHorz;if(DOM){iWindowCenterVert=window.innerWidth/2}else{if(IE){iWindowCenterVert=document.body.offsetWidth/2}}iWindowCenterVert=Math.round(iWindowCenterVert);if(document.getElementById(sMessageLayer)){document.getElementById(sMessageLayer).style.top=iWindowCenterHorz+"px";document.getElementById(sMessageLayer).style.left=(iWindowCenterVert-(iMessageWidth/2)).toString()+"px"}if(IE){document.getElementById(sMessageLayerBackround).style.width=(document.body.offsetWidth-4).toString()+"px";document.getElementById(sMessageLayerBackround).style.height=(document.body.offsetHeight-0).toString()+"px"}else{document.getElementById(sMessageLayerBackround).style.width="100%";document.getElementById(sMessageLayerBackround).style.height="100%";document.getElementById(sMessageLayerBackround).style.position="fixed";document.getElementById(sMessageLayer).style.position="fixed"}if(document.getElementById(sPreloader)){if(ok_btn==false){document.getElementById(sPreloader).style.display="block";document.getElementById(sMessageButtonOK).style.display="none";document.getElementById(sMessageLayerBackround).style.filter="alpha(opacity=30)";document.getElementById(sMessageLayerBackround).style.opacity=".3"}else{document.getElementById(sPreloader).style.display="none";document.getElementById(sMessageButtonOK).style.display="block";document.getElementById(sMessageLayerBackround).style.filter="alpha(opacity=70)";document.getElementById(sMessageLayerBackround).style.opacity=".7"}}if(document.getElementById(aPreloader)){if(ok_btn==false){document.getElementById(aPreloader).style.display="block";document.getElementById(sMessageButtonOK).style.display="none";document.getElementById(sMessageLayerBackround).style.filter="alpha(opacity=30)";document.getElementById(sMessageLayerBackround).style.opacity=".3";document.getElementById(sMessageButtonOK).style.filter="alpha(opacity=0)";document.getElementById(aPreloader).style.filter="alpha(opacity=100)"}else{document.getElementById(aPreloader).style.display="none";document.getElementById(sMessageButtonOK).style.display="block";document.getElementById(sMessageLayerBackround).style.filter="alpha(opacity=70)";document.getElementById(sMessageLayerBackround).style.opacity=".7";document.getElementById(aPreloader).style.filter="alpha(opacity=0)";document.getElementById(sMessageButtonOK).style.filter="alpha(opacity=100)"}}if(document.getElementById(sMessageLayerTitle)&&sMessageTitle){document.getElementById(sMessageLayerTitle).innerHTML=sMessageTitle}oMessageLayerText.innerHTML=sMessageText;$("MessageLayerBackround").setStyle({display:"block"});oMessageLayer.style.top=iWindowCenterHorz;oMessageLayer.style.display="block";if(oMessageLayer.addEventListener){oMessageLayer.addEventListener("mouseout",_MessageReset,false)}else{if(oMessageLayer.attachEvent){oMessageLayer.attachEvent("onmouseout",_MessageReset)}}}else{alert(sMessageText)}var browsH=window.document.body.clientHeight/2;var browsW="";var LayerHeight=document.getElementById("MessageLayer").offsetHeight/2;var LayerWidth="";var LayerPos=browsH-LayerHeight;document.getElementById("MessageLayer").style.top=LayerPos}}function MessageShowConfirmDeleteProduct(iMessageTop,iMessageWidth,sMessageText,sTableID,iRowID,oRowObj){var oDivConfirmDeleteProduct=document.getElementById("MessageLayerConfirmDelete");var oButtonOk=document.getElementById("MessageLayerConfirmDeleteButtonOK");var iWindowCenterHorz=iMessageTop;var iWindowCenterVert=0;iMessageTopOriginal=iWindowCenterHorz;if(DOM){iWindowCenterVert=window.innerWidth/2}else{if(IE){iWindowCenterVert=document.body.offsetWidth/2}}iWindowCenterVert=Math.round(iWindowCenterVert);if(document.getElementById(sMessageLayer)){document.getElementById(sMessageLayer).style.top=iWindowCenterHorz+"px";document.getElementById(sMessageLayer).style.left=(iWindowCenterVert-(iMessageWidth/2)).toString()+"px"}if(IE){document.getElementById(sMessageLayerBackround).style.width=(document.body.offsetWidth-4).toString()+"px";document.getElementById(sMessageLayerBackround).style.height=(document.body.offsetHeight-0).toString()+"px"}else{document.getElementById(sMessageLayerBackround).style.width="100%";document.getElementById(sMessageLayerBackround).style.height="100%";document.getElementById(sMessageLayerBackround).style.position="fixed";document.getElementById(sMessageLayer).style.position="fixed"}oMessageLayerText.innerHTML=sMessageText;$("MessageLayerBackround").setStyle({display:"block"});oDivConfirmDeleteProduct.style.top=iWindowCenterHorz;oDivConfirmDeleteProduct.style.display="block";_oRowObj=oRowObj;oButtonOk.setAttribute("href","javascript:scDeletePosition('"+sTableID+"','"+iRowID+"',_oRowObj)")}function MessageHide(){if(typeof("isExitClick")=="string"){isExitClick=true}if(isMessageLayers==true){oMessageLayer.style.display="none";if($("MessageLayerBackround")){$("MessageLayerBackround").setStyle({display:"none"})}if(oMessageLayer.removeEventListener){oMessageLayer.removeEventListener("mouseout",_MessageReset,false)}else{if(oMessageLayer.removeEvent){oMessageLayer.removeEvent("onmouseout",_MessageReset)}}if(document.getElementById("MCO")){document.getElementById("MCO").style.display="none"}if(document.getElementById("REG")){document.getElementById("REG").style.display="none"}if(document.getElementById("MessageLayerConfirmDelete")){document.getElementById("MessageLayerConfirmDelete").style.display="none"}if(document.getElementById("win_check")){document.getElementById("win_check").style.visibility="hidden"}paymentLayer=false}}function MessageMove(oThis){oMessageLayerMove=oThis;iOffsetX=iMouseX-oMessageLayerMove.offsetLeft;iOffsetY=iMouseY-oMessageLayerMove.offsetTop}function showMessageCancelOrder(MessageText,Destination){if(sMessageCoExitPoint&&sMessageCoExitPoint.length>0){if(sMessageCoExitPoint=="1_cstmzng"||sMessageCoExitPoint=="2_cstmzng"){location.href=Destination}else{if(Destination&&Destination.length!=0){sMessageCoDestination=Destination}if(document.getElementById("MCO")){document.getElementById("MCO_Text").innerHTML=MessageText;document.getElementById("MCO_ButtonSend").style.display="block";document.getElementById("MCO_ButtonContinue").style.display="block";document.getElementById("MCO_ButtonCancel").style.display="block";document.getElementById("MCO").style.display="block";if(document.getElementById("MessageLayerBackround")){document.getElementById("MessageLayerBackround").style.display="block";document.getElementById("MessageLayerBackround").style.filter="alpha(opacity=70)";document.getElementById("MessageLayerBackround").style.opacity=".7"}}}}else{location.href=Destination}}function showMessageCancelRegistration(MessageText,Destination){if(Destination){if(document.getElementById("REG")&&document.getElementById("REG_Text")){document.getElementById("REG_Text").innerHTML=MessageText;document.getElementById("REG").style.display="block";if(document.getElementById("MessageLayerBackround")){document.getElementById("MessageLayerBackround").style.display="block"}}}return false}window.onscroll=_setPosForIE;window.onresize=_setPosForIE;document.onmousemove=_MessageMove;document.onmouseup=_MessageReset;document.onkeydown=_checkEscKey;function _MessageMove(oEvent){if(isMessageMovable==true&&isMessageLayers==true){iMouseX=(IE)?window.event.clientX:oEvent.pageX;iMouseY=(IE)?window.event.clientY:oEvent.pageY;if(oMessageLayerMove!=null){oMessageLayerMove.style.left=(iMouseX-iOffsetX)+"px";oMessageLayerMove.style.top=(iMouseY-iOffsetY)+"px";oMessageLayerMove.style.cursor="move"}}}function _MessageReset(){if(isMessageLayers==true){oMessageLayer.style.cursor="default";oMessageLayerMove=null}}function _setPosForIE(oEvent){if(document.all&&isMessageLayers==true){if(!oEvent){oEvent=window.event}oMessageLayer=document.getElementById(sMessageLayer);oMessageLayerBg=$(sMessageLayerBackround);if(oMessageLayer.style.display=="block"&&$("MessageLayerBackround").getStyle("display")=="block"){var iScrollY=new Number(_getScrollPositionForIE());var sLayerTop=new String(oMessageLayer.style.top);sLayerTop=sLayerTop.substr(0,sLayerTop.length-2);if(!isNaN(sLayerTop)){document.getElementById(sMessageLayerBackround).style.top=iScrollY-4;var iLayerTop=Number(parseInt(sLayerTop));document.getElementById(sMessageLayer).style.top=iScrollY+iMessageTopOriginal;document.getElementById(sMessageLayerBackround).style.width=(document.body.offsetWidth-20).toString()}}}}function _getScrollPositionForIE(){var scrollPos;if(typeof window.pageYOffset!="undefined"){scrollPos=window.pageYOffset}else{if(typeof document.compatMode!="undefined"&&document.compatMode!="BackCompat"){scrollPos=document.documentElement.scrollTop}else{if(typeof document.body!="undefined"){scrollPos=document.body.scrollTop}}}return scrollPos}function _checkEscKey(oEvent){var KeyCode=0;if(IE){var EventCode=window.event;KeyCode=EventCode.keyCode}else{if(DOM){KeyCode=oEvent.keyCode}}if(KeyCode==27&&isMessageLayers==true){MessageHide()}};
//-------Including feedback.js--------//
var sMessageLayerBackround=new String("MessageLayerBackround");function doSendFeedbackCustomer(){document.forms.f_feedback_customer.submit();clearTextarea(feedback_textarea_1,feedback_textarea_2,feedback_textarea_3,feedback_textarea_4)}function doSendFeedback(){var feedback_textarea_1=document.getElementById("feedback_textarea_1").value;var feedback_textarea_2=document.getElementById("feedback_textarea_2").value;var feedback_textarea_3=document.getElementById("feedback_textarea_3").value;var feedback_textarea_4=document.getElementById("feedback_textarea_4").value;document.f_feedback_customer.textarea_1.value=feedback_textarea_1;document.f_feedback_customer.textarea_2.value=feedback_textarea_2;document.f_feedback_customer.textarea_3.value=feedback_textarea_3;document.f_feedback_customer.textarea_4.value=feedback_textarea_4}function hide_feedback_layer(){$("feedback_main_layer").setStyle({display:"none"});$("MessageLayerBackround").setStyle({display:"none"});clearTextarea(feedback_textarea_1,feedback_textarea_2,feedback_textarea_3,feedback_textarea_4);hide_customer_info_feedback();WritingColorAll()}function hide_livetour_layer(){$("livetour_main_layer").setStyle({display:"none"});$("MessageLayerBackround").setStyle({display:"none"});$("livetour_main_layer").innerHTML=""}function hide_info_feedback(){document.getElementById("feedback_layer").style.visibility="hidden";document.getElementById("feedback_layer_frame").style.visibility="hidden";if(!(document.URL.search(/getprint/)!=-1)&&!(document.URL.search(/easyprint/)!=-1)){$("no_show").setStyle({display:"inline"})}}function hide_customer_info_feedback(){document.getElementById("feedback_customer_layer").style.visibility="hidden";if(!(document.URL.search(/getprint/)!=-1)&&!(document.URL.search(/easyprint/)!=-1)){document.getElementById("feedback_customer_layer_frame").style.display="none"}$("MessageLayerBackround").setStyle({display:"none"})}function clearTextarea(feedback_textarea_1,feedback_textarea_2,feedback_textarea_3,feedback_textarea_4){if(document.getElementById("feedback_textarea_1").value==""||document.getElementById("feedback_textarea_1").value!=feedback_textarea_1){document.getElementById("feedback_textarea_1").value=feedback_textarea_1}if(document.getElementById("feedback_textarea_2").value==""||document.getElementById("feedback_textarea_2").value!=feedback_textarea_2){document.getElementById("feedback_textarea_2").value=feedback_textarea_2}if(document.getElementById("feedback_textarea_3").value==""||document.getElementById("feedback_textarea_3").value!=feedback_textarea_3){document.getElementById("feedback_textarea_3").value=feedback_textarea_3}if(document.getElementById("feedback_textarea_4").value==""||document.getElementById("feedback_textarea_4").value!=feedback_textarea_4){document.getElementById("feedback_textarea_4").value=feedback_textarea_4}}function clearCustomerForm(contact_vorname,contact_nachname,contact_mail,contact_telefon,check_phone){if(document.getElementById("contact_vorname").value!=""){document.getElementById("contact_vorname").value=""}if(document.getElementById("contact_nachname").value!=""){document.getElementById("contact_nachname").value=""}if(document.getElementById("contact_mail").value!=""){document.getElementById("contact_mail").value=""}if(document.getElementById("contact_telefon").value==""||document.getElementById("contact_telefon").value!=check_phone){document.getElementById("contact_telefon").value=check_phone}}function clearFieldButton(feedback_textarea_1,feedback_textarea_2,feedback_textarea_3,feedback_textarea_4){if(document.f_feedback_customer.textarea_1.value==feedback_textarea_1||document.f_feedback_customer.textarea_4.value==""){document.f_feedback_customer.textarea_1.value=""}if(document.f_feedback_customer.textarea_2.value==feedback_textarea_2||document.f_feedback_customer.textarea_2.value==""){document.f_feedback_customer.textarea_2.value=""}if(document.f_feedback_customer.textarea_3.value==feedback_textarea_3){document.f_feedback_customer.textarea_3.value=""}if(document.f_feedback_customer.textarea_4.value==feedback_textarea_4||document.f_feedback_customer.textarea_4.value==""){document.f_feedback_customer.textarea_4.value=""}}function checkMailFeedback(error_check_mail){var sMail=new String(document.f_feedback_customer.contact_mail.value);var sMatchRegExp1=new String("^.{6,100}$");var sMatchRegExp2=new String("^([a-zA-Z0-9äÄöÖüÜß\\-\\.\\*\\_])+@(([a-zA-Z0-9äÄöÖüÜß\\-]+\\.)+[a-zA-Z]{2,6})$");if(sMail==""){hide_customer_info_feedback();doSendFeedbackCustomer()}else{if(!sMail.match(sMatchRegExp1)||!sMail.match(sMatchRegExp2)){alert(error_check_mail)}else{hide_customer_info_feedback();doSendFeedbackCustomer()}}}function checkPhone(error_check_phone,error_check_mail,check_phone){var sPhone=new String(document.f_feedback_customer.contact_telefon.value);var sMatchRegExp1=new String("^.{6,100}$");var sMatchRegExp2=new String("^[0-9]");if(sPhone==""||(document.f_feedback_customer.contact_telefon.value==check_phone)){checkMailFeedback(error_check_mail)}else{if(!sPhone.match(sMatchRegExp2)){alert(error_check_phone)}else{checkMailFeedback(error_check_mail)}}}function openLiveTour(sid,country,language,cam_id){var url="/cgi-bin/webcam.cgi?sid="+sid+"&webcam=1&c="+country+"&l="+language;if(cam_id){url=url+"&cam_id="+cam_id}new Ajax.Request(url,{method:"get",onSuccess:function(transport){var response=transport.responseText||"the webcam is under construction";livetour_layer_show(370,385);document.getElementById("livetour_main_layer").innerHTML=response;document.getElementById("livetour_close").style.display="block"}})}function switchCam(sid,country,language,cam_id,layer_window_flag){var url="/cgi-bin/webcam.cgi?sid="+sid+"&webcam=1&c="+country+"&l="+language+"&cam_id="+cam_id+"&lwf="+layer_window_flag;new Ajax.Request(url,{method:"get",onSuccess:function(transport){var response=transport.responseText||"the webcam is under construction";document.getElementById("livetour_main_layer").innerHTML=response;document.getElementById("livetour_close").style.display="block"}})}function livetour_layer_show(iMessageTop,iMessageWidth){var userAgent=navigator.userAgent;var breite=iMessageWidth;var hoehe=iMessageTop;if(document.URL.search("getprint")>0){var diff_x=(brows=="ie")?2:18;var diff_y=(brows=="ie")?70:87}else{if(document.URL.search("firstprint")>0){var diff_x=(brows=="ie")?12:18;var diff_y=(brows=="ie")?76:94}else{if(document.URL.search("unitedprint")>0){var diff_x=(brows=="ie")?12:14;var diff_y=(brows=="ie")?71:89}else{if(document.URL.search("printwhat")>0){var diff_x=(brows=="ie")?10:10;var diff_y=(brows=="ie")?78:95}else{if(document.URL.search("print24")>0){var diff_x=(brows=="ie")?-10:10;var diff_y=(brows=="ie")?85:89}else{var diff_x=(brows=="ie")?10:10;var diff_y=(brows=="ie")?89:89}}}}}if(document.URL.search("print24")>0){var pos_y=$("feedback_icons").cumulativeOffset()[1]}else{var pos_y=center_position("top",hoehe)-diff_y}var pos_x=center_position("left",breite)+diff_x;document.getElementById("livetour_main_layer").style.display="inline";if(IE){document.getElementById("livetour_main_layer").style.top=pos_y+"px";document.getElementById("livetour_main_layer").style.left=pos_x+"px";setTimeout("layer_background_ie()",500)}else{document.getElementById(sMessageLayerBackround).style.width="100%";document.getElementById(sMessageLayerBackround).style.height="100%";document.getElementById(sMessageLayerBackround).style.position="fixed";document.getElementById("livetour_main_layer").style.top=pos_y+"px";document.getElementById("livetour_main_layer").style.left=pos_x+"px"}if($("MessageLayerBackround")){$("MessageLayerBackround").setStyle({display:"block",opacity:"0.7"})}}function layer_background_ie(){var D=document;var width=Math.max(D.body.scrollWidth,D.documentElement.scrollWidth);var height=Math.max(D.body.scrollHeight,D.documentElement.scrollHeight);document.getElementById(sMessageLayerBackround).style.width=width+"px";document.getElementById(sMessageLayerBackround).style.height=height+"px"}function center_position(from,size){if(from=="left"){var pop_w=size;var pos=(getDocWidth()-pop_w)/2}else{if(from=="top"){var pop_h=size;var pos=(Prototype.Browser.Opera)?(window.outerHeight-pop_h)/2:(screen.availHeight-pop_h)/2;pos=(!!navigator.userAgent.match("Chrome"))?pos+45:pos}}return pos}function getDocWidth(){var D=document;return Math.max(Math.max(D.body.scrollWidth,D.documentElement.scrollWidth),Math.max(D.body.offsetWidth,D.documentElement.offsetWidth),Math.max(D.body.clientWidth,D.documentElement.clientWidth))};
//-------Including helplayer.js--------//
function show_info_layer_center(iMessageTop,iMessageWidth){var userAgent=navigator.userAgent;var iWindowCenterVert=iMessageTop;var iWindowCenterHorz=0;document.getElementById("help_layer").style.visibility="visible";document.getElementById("center_helplayer").style.display="inline";if(DOM){iWindowCenterHorz=window.innerWidth/2}else{if(IE){iWindowCenterHorz=document.body.offsetWidth/2}}if(IE){document.getElementById(sMessageLayerBackround).style.width=(document.body.offsetWidth-4).toString()+"px";document.getElementById(sMessageLayerBackround).style.height=(document.body.offsetHeight-0).toString()+"px";document.getElementById("help_layer").style.top=iMessageTop+"px";document.getElementById("help_layer").style.left=(iWindowCenterHorz-(iMessageWidth/2)).toString()+"px"}else{document.getElementById(sMessageLayerBackround).style.width="100%";document.getElementById(sMessageLayerBackround).style.height="100%";document.getElementById(sMessageLayerBackround).style.position="fixed";document.getElementById(sMessageLayerBackround).style.position="fixed";document.getElementById("help_layer").style.top=iMessageTop+"px";document.getElementById("help_layer").style.left=(iWindowCenterHorz-(iMessageWidth/2)).toString()+"px"}}function show_info_layer_dynamic(){var url=startpage_plain+"cgi-bin/ajax.cgi?sid="+sid+"&cmd=get_helplayer";new Ajax.Updater("center_helplayer",url,{method:"get",evalScripts:true,insertation:Insertion.Top,onComplete:function(){show_info_layer_center(320,315)}})}function hide_info_layer(){document.getElementById("help_layer").style.visibility="hidden";document.getElementById("help_layer_frame").style.visibility="hidden";if($("MessageLayerBackround")){$("MessageLayerBackround").setStyle({display:"none"})}}function set_cookie(){var time=new Date();time=new Date(time.getTime()+1000*60*60*24*365);document.cookie="layer_cookie=1; expires="+time.toGMTString()+";"}function read_cookie(){var name="layer_cookie=";var cookie_array=document.cookie.split(";");for(var i=0;i<cookie_array.length;i++){var current=cookie_array[i];while(current.charAt(0)==" "){current=current.substring(1,current.length)}if(current.indexOf(name)==0){return current.substring(name.length,current.length)}}return 0};

