function SelectBoxObject(g,M,e,h,u,x,E,m,N,O){function P(){if(c.value==u)c.value=""}function y(){if(I=="false"&&z=="false"){try{xDKI.Utilities.popupSetClose(d,d.closeOptions)}catch(a){xDKI.alert("popups Error: ",5,a)}var b,c,e;e=parseInt(document.body.scrollHeight);if(!N)b=xDKI.Utilities.findPosX(i),c=xDKI.Utilities.findPosY(i),i.style.position="absolute",i.style.left=b,i.style.top=c,i.style.zIndex=2;w.appendChild(F);z="true";if(r.rows.length>10)p.style.height="100px";b=parseInt(c+i.scrollHeight);
b>e&&xDKI.Utilities.adjustHeightInPortal(b-e);r.style.width=p.scrollWidth+"px";if(j.onopen)j.onopen()}}function Q(a){if(!a)a=window.event;if(a.target){s.value=a.target.value;j.selectedIndex=a.target.OptionNr;j.ValueOfSelectedIndex=a.target.value;A();if(k.value!=a.target.firstChild.nodeValue&&(k.value=a.target.firstChild.nodeValue,j.onchange&&t=="false"))j.onchange();a.target.style.backgroundColor="#F6F6F6"}else{s.value=a.srcElement.value;j.selectedIndex=a.srcElement.OptionNr;j.ValueOfSelectedIndex=
a.srcElement.value;A();if(k.value!=a.srcElement.firstChild.nodeValue&&(k.value=a.srcElement.firstChild.nodeValue,j.onchange&&t=="false"))j.onchange();a.srcElement.style.backgroundColor="#F6F6F6"}t=="true"&&c.focus()}function G(){s.value=c.value}function J(a){if(xDKINewLinePressed(a)){s.value=c.value;if(j.onchange)j.onchange();return!1}}function R(a){v="true";if(!a)a=window.event;a.target?a.target.style.backgroundColor="#DCEBF6":a.srcElement.style.backgroundColor="#DCEBF6"}function S(a){v="false";
if(!a)a=window.event;a.target?a.target.style.backgroundColor="#F6F6F6":a.srcElement.style.backgroundColor="#F6F6F6"}function A(){d.Timeout!="nil"&&clearTimeout(d.Timeout);try{w.removeChild(F)}catch(a){}v=z="false";i.style.position="static";for(b=0;b<l.length;b++)f[b].className="bg_sucanul";xDKI.Utilities.adjustHeightInPortal()}function K(){return!1}function L(a){if(xDKINewLinePressed(a))return!1}m||(m=";");var c=document.createElement("INPUT");c.type="text";c.readOnly=!0;c.name=g+"selectedName";document.write('<Input type="hidden" name="'+
g+'" id="'+g+'" Value="'+xDKIHtmlEncode(u)+'"/>');var F=document.createElement("TR"),B=document.createElement("TD"),l=[];e.substring(e.length-m.length,e.length)==m&&(e=e.substring(0,e.length-m.length));var l=e.split(m),n=[];h.substring(h.length-m.length,h.length)==m&&(h=h.substring(0,h.length-m.length));var n=h.split(m),z="false",v="false",o=-1;if(document.getElementsByName(g).length==0)return!1;var s=document.getElementsByName(g)[0],b,I="false",t="false",C=[];this.Timeout="nil";this.name=g;this.onmouseover=
function(){};this.openOptions=function(){y()};this.optionsOpen=function(){return z};var d=this;typeof O=="undefined"?(this._onmouseover=function(a){var b;b=!1;l.length>0&&l.length>C.length&&(b=!0);if(b){d.Timeout!="nil"&&clearTimeout(d.Timeout);try{d.onmouseover(a)}catch(c){}if(d.optionsOpen()=="false"){try{xDKI.Utilities.popupSetClose(d,d.closeOptions)}catch(e){xDKI.alert("popups Error: ",5,e)}try{d.openOptions()}catch(f){xDKI.alert("openOptions Error: ",5,f)}}}},this._onmouseout=function(a){d.Timeout!=
"nil"&&clearTimeout(d.Timeout);try{d.onmouseout(a)}catch(b){}if(d.optionsOpen()=="true")try{d.Timeout=setTimeout(function(){xDKI.Utilities.popupSetClose(null,d.closeOptions)},500),t=="true"&&G()}catch(c){xDKI.alert("popups Error: ",5,c)}}):(this._onmouseover=function(){},this._onmouseout=function(){});c.onmouseover=function(a){d._onmouseover(a)};c.onmouseout=function(a){d._onmouseout(a)};for(b=0;b<l.length;b++)u==n[b]&&(o=b);o==-1?t=="true"?(c.value=u,s.value=c.value):(c.value=l[0],s.value=n[0]):
(c.value=l[o],s.value=n[o]);var i=document.createElement("DIV");i.id="selectboxdiv";i.className="selectboxdiv";g=document.createElement("TABLE");g.border=0;g.style.width="100%";g.cellSpacing="0";g.cellPadding="0";i.appendChild(g);i.style.width=x+"px";var w=document.createElement("TBODY");g.appendChild(w);e=w.insertRow(-1);e.style.height=E+"px";h=e.insertCell(-1);h.style.width=x-15;h.style.height=E+"px";h.align="left";h.vAlign="bottom";h.appendChild(c);c.style.width=h.style.width;c.style.height=e.style.height;
if(t=="false")c.onclick=y;var k=c;k.className="selectedOption";k.style.overflow="hidden";k.style.paddingLeft="4px";k.style.paddingtop="0px";k.style.margin="0px";k.vAlign="bottom";e=e.insertCell(-1);e.align="right";e.style.width=15;e.style.backgroundColor="#ffffff";w.insertRow(-1).insertCell(-1);var q=document.createElement("INPUT");q.type="button";q.className="openOptionsButton";q.onclick=y;q.style.width="15px";q.style.height=E+"px";e.appendChild(q);q.onmouseover=function(a){d._onmouseover(a)};q.onmouseout=
function(a){d._onmouseout(a)};this.innerHTML=g.innerHTML;this.selectedIndex=o;this.ValueOfSelectedIndex=n[o];var r=document.createElement("TABLE"),H=document.createElement("TBODY");r.appendChild(H);r.cellPadding=0;r.cellSpacing=0;r.style.zIndex=2;r.style.wordWrap="break-word";var D=[],f=[];for(b=0;b<l.length;b++){D[b]=document.createElement("TR");f[b]=document.createElement("TD");H.appendChild(D[b]);f[b].style.width=x-20+"px";D[b].appendChild(f[b]);if(l[b]=="")f[b].style.height="15px";f[b].innerHTML=
xDKIHtmlEncode(l[b]);f[b].value=n[b];f[b].OptionNr=b;f[b].align="left";f[b].onclick=Q;f[b].onmouseover=R;f[b].onmouseout=S;try{f[b].style.cursor="pointer"}catch(T){f[b].style.cursor="hand"}f[b].style.paddingLeft="4px"}document.createElement("TR");document.createElement("TD");B.style.width=x;var j=this;B.colSpan="2";F.appendChild(B);var p=document.createElement("DIV");p.className="selectboxoptions";p.onmouseover=function(){d.Timeout!="nil"&&clearTimeout(d.Timeout);v="true"};p.onscroll=function(){q.focus()};
p.onmouseout=function(){d.Timeout=setTimeout(function(){xDKI.Utilities.popupSetClose()},500);v="false"};B.appendChild(p);p.appendChild(r);p.style.overflow="auto";M.appendChild(i);this.setDefaultOptionAsHeadline=function(){var a;for(a=0;a<n.length;a++)n[a]==u&&H.removeChild(D[a])};this.makeEditable=function(){c.readOnly=!1;t="true";c.onclick=K;c.value=u;s.value=c.value;c.onkeypress=L;c.onkeydown=L;c.onkeyup=J;c.onchange=G};this.deleteTextOnFocus=function(){c.onfocus=P};this.setName=function(a){this.name=
a};this.disabled=function(){k.disabled=!0;I="true"};this.disableOptions=function(a){C=a.split(m);for(b=0;b<C.length;b++)if(parseInt(C[b])<f.length)a=f[b],a.style.color="#666666",a.style.cursor="default",a.onclick=K};this.reset=function(){this.setValue(u)};this.setValue=function(a){for(b=0;b<l.length;b++)a==n[b]&&(o=b);c.value=n[o];this.ValueOfSelectedIndex=n[o];k.value=l[o]};this.setTitle=function(a){i.title=a};this.openOptions=function(){y()};this.closeOptions=function(){A();v=="false"&&A();if(j.onopen)j.onopen()};
if(t=="true")c.onkeypress=J,c.onchange=G};

