
function switchTop10(iHow)
{if(iHow==1){document.getElementById('hiddentop10').style.display='block';document.getElementById('showhiddentop10').style.display='none';document.getElementById('hidehiddentop10').style.display='block';}else{document.getElementById('hiddentop10').style.display='none';document.getElementById('showhiddentop10').style.display='block';document.getElementById('hidehiddentop10').style.display='none';}}
function sendUsermessage(sBody)
{if(isBlankText(sBody)){alert(aLanguageErrors['fill-message-field']);return;}
if(confirm(aLanguageErrors['confirm-send-message'])){oHttp=new httpConnector();var sResult=oHttp.getResponse("GET","/services/sendUsermessage.php?body="+sBody);alert(sResult);}}
function forgotPassword_onclick()
{var oUsername=document.getElementById("username");if(isBlankText(oUsername.value)){alert(aLanguageErrors['fill_email']);oUsername.focus();return;}
oHttp=new httpConnector();var sResult=oHttp.getResponse("GET","/services/forgotPassword.php?username="+oUsername.value);alert(sResult);}
function forgotPassword(email)
{oHttp=new httpConnector();var sResult=oHttp.getResponse("GET","/services/forgotPassword.php?username="+email);alert(sResult);}<!--
startList=function(){if(document.all&&document.getElementById){navRoot=document.getElementById("dropDown");for(i=0;i<navRoot.childNodes.length;i++){node=navRoot.childNodes[i];if(node.nodeName=="LI"){node.onmouseover=function(){this.className+=" over";}
node.onmouseout=function(){this.className=this.className.replace(" over","");}}}}}
window.onload=startList;function _getXmlConnector()
{var xmlhttp=false;try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(E){xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined'){xmlhttp=new XMLHttpRequest();}
return xmlhttp;}
function _onreadystatechange()
{if(httpXmlHandler.readyState==4){return;}}
var httpXmlHandler;function httpConnector()
{this._getXmlConnector=_getXmlConnector;httpXmlHandler=this._getXmlConnector();this.getResponse=function(target,url)
{httpXmlHandler.open(target,url,false);httpXmlHandler.setRequestHeader('Accept','message/x-jl-formresult')
httpXmlHandler.send(null)
return httpXmlHandler.responseText;}}
function advSearchForm_onsubmit()
{var oForm=document.getElementById('advSearchForm');var bValid=false;document.getElementById('error_nofloat').disabled=false;document.getElementById('error_nocriteria').disabled=false;with(oForm){if(!isBlankText(searchInput1.value)){bValid=true;}
if(color_id.options.selectedIndex>0){bValid=true;}
if(!isBlankText(bstart.value)){bValid=true;if(!isFloat(bstart.value)){alert(document.getElementById('error_nofloat').value);bstart.focus();bValid=false;return bValid;}}
if(!isBlankText(bend.value)){bValid=true;if(!isFloat(bend.value)){alert(document.getElementById('error_nofloat').value);bend.focus();bValid=false;return bValid;}}
if(category_id.options.selectedIndex>0){bValid=true;}
if(!isBlankText(article_number.value)){bValid=true;}
if(!bValid){alert(document.getElementById('error_nocriteria').value);}
document.getElementById('error_nofloat').disabled=true;document.getElementById('error_nocriteria').disabled=true;return bValid;}}
function changePasswordForm_onsubmit()
{var oForm=document.getElementById('changePasswordForm');if(isBlankText(oForm.cpassword.value)){alert(document.getElementById('error_nocurrentpassword').value);oForm.cpassword.focus();return false;}
if(isBlankText(oForm.npassword.value)){alert(document.getElementById('error_nopassword').value);oForm.npassword.focus();return false;}
if(isBlankText(oForm.rpassword.value)){alert(document.getElementById('error_noretypepassword').value);oForm.rpassword.focus();return false;}
if(oForm.npassword.value!=oForm.rpassword.value){alert(document.getElementById('error_passwordnomatch').value);oForm.npassword.focus();return false;}
return true;}
var swidth=250;var sheight=58;var sbcolor='#ffffff';var sspeed=2;var resumesspeed=sspeed
function start(){if(document.getElementById('ticker')){if(document.all)iemarquee(ticker);else if(document.getElementById)
ns6marquee(document.getElementById('ticker'));}}
function iemarquee(whichdiv){iediv=eval(whichdiv)
sheight-=50;iediv.style.pixelTop=sheight
iediv.innerHTML=msg
sizeup=iediv.offsetHeight
ieslide()}
function ieslide(){if(iediv.style.pixelTop>=sizeup*(-1)){iediv.style.pixelTop-=sspeed
setTimeout("ieslide()",100)}
else{iediv.style.pixelTop=sheight
ieslide()}}
function ns6marquee(whichdiv){ns6div=eval(whichdiv)
sheight-=50;ns6div.style.top=sheight+"px";ns6div.innerHTML=msg
sizeup=ns6div.offsetHeight
ns6slide()}
function ns6slide(){if(parseInt(ns6div.style.top)>=sizeup*(-1)){theTop=parseInt(ns6div.style.top)-sspeed
ns6div.style.top=theTop+"px";setTimeout("ns6slide()",100)}
else{ns6div.style.top=sheight+"px";ns6slide()}}
Date.dayNames=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];Date.abbrDayNames=['Sun','Mon','Tue','Wed','Thu','Fri','Sat'];Date.monthNames=['January','February','March','April','May','June','July','August','September','October','November','December'];Date.abbrMonthNames=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];Date.firstDayOfWeek=1;Date.format='dd/mm/yyyy';Date.fullYearStart='20';(function(){function add(name,method){if(!Date.prototype[name]){Date.prototype[name]=method;}};add("isLeapYear",function(){var y=this.getFullYear();return(y%4==0&&y%100!=0)||y%400==0;});add("isWeekend",function(){return this.getDay()==0||this.getDay()==6;});add("isWeekDay",function(){return!this.isWeekend();});add("getDaysInMonth",function(){return[31,(this.isLeapYear()?29:28),31,30,31,30,31,31,30,31,30,31][this.getMonth()];});add("getDayName",function(abbreviated){return abbreviated?Date.abbrDayNames[this.getDay()]:Date.dayNames[this.getDay()];});add("getMonthName",function(abbreviated){return abbreviated?Date.abbrMonthNames[this.getMonth()]:Date.monthNames[this.getMonth()];});add("getDayOfYear",function(){var tmpdtm=new Date("1/1/"+this.getFullYear());return Math.floor((this.getTime()-tmpdtm.getTime())/86400000);});add("getWeekOfYear",function(){return Math.ceil(this.getDayOfYear()/7);});add("setDayOfYear",function(day){this.setMonth(0);this.setDate(day);return this;});add("addYears",function(num){this.setFullYear(this.getFullYear()+num);return this;});add("addMonths",function(num){var tmpdtm=this.getDate();this.setMonth(this.getMonth()+num);if(tmpdtm>this.getDate())
this.addDays(-this.getDate());return this;});add("addDays",function(num){this.setDate(this.getDate()+num);return this;});add("addHours",function(num){this.setHours(this.getHours()+num);return this;});add("addMinutes",function(num){this.setMinutes(this.getMinutes()+num);return this;});add("addSeconds",function(num){this.setSeconds(this.getSeconds()+num);return this;});add("zeroTime",function(){this.setMilliseconds(0);this.setSeconds(0);this.setMinutes(0);this.setHours(0);return this;});add("asString",function(){var r=Date.format;return r.split('yyyy').join(this.getFullYear()).split('yy').join((this.getFullYear()+'').substring(2)).split('mmm').join(this.getMonthName(true)).split('mm').join(_zeroPad(this.getMonth()+1)).split('dd').join(_zeroPad(this.getDate()));});Date.fromString=function(s)
{var f=Date.format;var d=new Date('01/01/1977');var iY=f.indexOf('yyyy');if(iY>-1){d.setFullYear(Number(s.substr(iY,4)));}else{d.setFullYear(Number(Date.fullYearStart+s.substr(f.indexOf('yy'),2)));}
var iM=f.indexOf('mmm');if(iM>-1){var mStr=s.substr(iM,3);for(var i=0;i<Date.abbrMonthNames.length;i++){if(Date.abbrMonthNames[i]==mStr)break;}
d.setMonth(i);}else{d.setMonth(Number(s.substr(f.indexOf('mm'),2))-1);}
d.setDate(Number(s.substr(f.indexOf('dd'),2)));if(isNaN(d.getTime())){return false;}
return d;};var _zeroPad=function(num){var s='0'+num;return s.substring(s.length-2)};})();