function clearDefaultTextOnFocus(b,c,a,d){myTextfield=document.getElementById(b);if(a==undefined){a=""}if(myTextfield.value==c){if(d==false){myTextfield.style.color="black";myTextfield.style.fontStyle="normal"}if(d==true){myTextfield.style.color="#999999";myTextfield.style.fontStyle="italic"}myTextfield.value=a}}function voteHighlight(a){for(i=1;i<=5;i++){if(i<=a){document.getElementById("voteStar_"+i).src="/images/star_red_ac.gif"}else{document.getElementById("voteStar_"+i).src="/images/star_red.gif"}}}function showHideLayer(a,b){myLayer=document.getElementById(a);myLayer.style.display=b}function helpButtonOff(a){$("helpButton"+a).hide()}function helpButtonOn(b,c){var a=0;var d=0;if(!c){var c=window.event}if(c.pageX||c.pageY){a=c.pageX;d=c.pageY}else{if(c.clientX||c.clientY){a=c.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;d=c.clientY+document.body.scrollTop+document.documentElement.scrollTop}}quickinfo_box=$("helpButton"+b);quickinfo_box.left=a+"px";quickinfo_box.style.left=a+"px";quickinfo_box.top=d+3+"px";quickinfo_box.style.top=d+3+"px";quickinfo_box.innerHTML=$("help"+b).innerHTML;quickinfo_box.show()}function checkCategories(c,e,a){var d=document.forms[c];for(var b=0;b<d.length;b++){if(d[b].name==e){d[b].checked=a}}}function unCheckAll(){document.getElementById("Alle").checked=false}function replaceChars(a){out=",";add=".";temp=""+a;while(temp.indexOf(out)>-1){pos=temp.indexOf(out);temp=""+(temp.substring(0,pos)+add+temp.substring((pos+out.length),temp.length))}return temp}function check_quantity(a){isError=0;myValue=a.value;myValue=replaceChars(myValue);if((isNaN(myValue)||parseInt(myValue)>=10000)){isError=1}mySubstring=myValue.split(".");if(mySubstring[1]&&mySubstring[1].length>3){isError=1}if(isError){a.className="hi_error"}else{a.className=""}};
