function InitializeDropdowns(){dropdowns=document.getElementsByTagName("select");for(var a=0;a<dropdowns.length;++a)!1!==strpos(dropdowns[a].getAttribute("class"),"fox_dropdown",0)&&(DropdownSetStyle(dropdowns[a]),DropdownAlignValue(dropdowns[a]));spans=document.getElementsByTagName("span");for(a=0;a<spans.length;++a)!1!==strpos(spans[a].getAttribute("class"),"outer_dropdown",0)&&SpanSetStyle(spans[a])}
function DropdownAlignValue(a){var b=document.getElementById("ddi"+a.name),a=a.options[a.selectedIndex].text;document.all?b.innerText=a:b.textContent=a}function DropdownSetStyle(a){a.style.opacity="0";a.style.position="absolute";a.style.height="28px";document.all&&(a.style.filter="alpha(opacity = 0)",a.style.zoom="1")}function SpanSetStyle(a){a.style.display="table"}function strpos(a,b,c){a=(a+"").indexOf(b,c||0);return-1===a?!1:a}function ResetFoxControls(){ResetCheckboxes();ResetDropdowns()}
function ResetCheckboxes(){inputs=document.getElementsByTagName("input");for(var a=0;a<inputs.length;++a)if("checkbox"==inputs[a].getAttribute("type")&&"foxcheckbox"==inputs[a].getAttribute("class")){var b=inputs[a].getAttribute("name");document.getElementById("s"+b).className="fox_cbspan fox_cbspan_false"}}
function ResetDropdowns(){dropdowns=document.getElementsByTagName("select");for(var a=0;a<dropdowns.length;++a)if(!1!==strpos(dropdowns[a].getAttribute("class"),"fox_dropdown",0)){var b=document.getElementById("ddi"+dropdowns[a].name);document.all?b.innerText="":b.textContent=""}};