function flip(im) { var div=document.getElementById('s_'+im); var divb=document.getElementById('p_s_'+im); var path=divb.src.substring(0, divb.src.length-9); if(div.style.display != 'none'){ div.style.display = 'none'; divb.src=path+'tree3.gif'; }else{ div.style.display = ''; divb.src=path+'tree2.gif'; } } function _changeCurrency() { document.getElementById('ChangeCurrencyForm').submit(); } function fliq(em) { if(em.style.display == 'none') em.style.display = ''; var attvalue = em.getAttribute('id'); var divc=document.getElementById('p_'+attvalue); if(divc){ var pathc=divc.src.substring(0, divc.src.length-9); divc.src=pathc+'tree2.gif'; } } function open_window(link,w,h) { var win = "width="+w+",height="+h+",menubar=no,location=no,resizable=yes,scrollbars=yes"; newWin = window.open(link,'newWin',win); newWin.focus(); } function confirmDelete(id, ask, url) { temp = window.confirm(ask); if (temp) { window.location=url+id; } } function setGlobalOnLoad(f) { var root = window.addEventListener || window.attachEvent ? window : document.addEventListener ? document : null; if (root){ if(root.addEventListener) root.addEventListener("load", f, false); else if(root.attachEvent) root.attachEvent("onload", f); } else { if(typeof window.onload == 'function') { var existing = window.onload; window.onload = function() { existing(); f(); } } else { window.onload = f; } } } function doLoad(forse) { var agt=navigator.userAgent.toLowerCase(); var is_major = parseInt(navigator.appVersion); var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)); var is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) && (agt.indexOf("msie 7.")==-1) && (agt.indexOf("msie 8.")==-1)); if(document.getElementById('axcrt')){ if ( !is_ie6 ){ document.getElementById('axcrt').style.left = Math.ceil((document.documentElement.clientWidth-300)/2)+'px'; document.getElementById('axcrt').style.top = Math.ceil((document.documentElement.clientHeight-100)/2)+'px'; } if ( is_ie ){ if (document.styleSheets.length == 0) document.createStyleSheet(); var oSheet = document.styleSheets[0]; oSheet.addRule(".WCHhider", "visibility:hidden"); } document.getElementById('axcrt').style.display = ''; document.getElementById('axcrt').style.visibility = 'visible'; } JsHttpRequest.query( 'index.php', forse, // Function is called when an answer arrives. function(result, errors) { setTimeout('doHide()',1500); doCart(result); }, true // do not caching ); } function doLoadcpr(forse) { var agt=navigator.userAgent.toLowerCase(); var is_major = parseInt(navigator.appVersion); var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)); var is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) && (agt.indexOf("msie 7.")==-1) && (agt.indexOf("msie 8.")==-1)); if(document.getElementById('axcrt')){ renbox(); if ( !is_ie6 ){ document.getElementById('axcrt').style.left = Math.ceil((document.documentElement.clientWidth-300)/2)+'px'; document.getElementById('axcrt').style.top = Math.ceil((document.documentElement.clientHeight-100)/2)+'px'; } if ( is_ie ){ if (document.styleSheets.length == 0) document.createStyleSheet(); var oSheet = document.styleSheets[0]; oSheet.addRule(".WCHhider", "visibility:hidden"); } document.getElementById('axcrt').style.display = ''; document.getElementById('axcrt').style.visibility = 'visible'; } JsHttpRequest.query( 'index.php', forse, // Function is called when an answer arrives. function(result, errors) { setTimeout('doHide()',1500); doCpr(result); }, true // do not caching ); } function doLoadcprCL(forse) { var agt=navigator.userAgent.toLowerCase(); var is_major = parseInt(navigator.appVersion); var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)); var is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) && (agt.indexOf("msie 7.")==-1) && (agt.indexOf("msie 8.")==-1)); if(document.getElementById('axcrt')){ renboxCL(); if ( !is_ie6 ){ document.getElementById('axcrt').style.left = Math.ceil((document.documentElement.clientWidth-300)/2)+'px'; document.getElementById('axcrt').style.top = Math.ceil((document.documentElement.clientHeight-100)/2)+'px'; } if ( is_ie ){ if (document.styleSheets.length == 0) document.createStyleSheet(); var oSheet = document.styleSheets[0]; oSheet.addRule(".WCHhider", "visibility:hidden"); } document.getElementById('axcrt').style.display = ''; document.getElementById('axcrt').style.visibility = 'visible'; } JsHttpRequest.query( 'index.php', forse, // Function is called when an answer arrives. function(result, errors) { setTimeout('doHide()',1500); doCL(); }, true // do not caching ); } function doLStat(forse) { JsHttpRequest.query( 'index.php', forse, // Function is called when an answer arrives. function(result, errors) { doStat(result); }, true // do not caching ); } function doHide() { var agt=navigator.userAgent.toLowerCase(); var is_major = parseInt(navigator.appVersion); var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)); var is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) && (agt.indexOf("msie 7.")==-1) && (agt.indexOf("msie 8.")==-1)); if(document.getElementById('axcrt')){ document.getElementById('axcrt').style.visibility = 'hidden'; document.getElementById('axcrt').style.display = 'none'; setTimeout('doreset()',100); if ( is_ie ){ if (document.styleSheets.length == 0) document.createStyleSheet(); var oSheet = document.styleSheets[0]; oSheet.addRule(".WCHhider", "visibility:visible"); } } } function validate() { if (document.subscription_form.email.value.length<1) { alert(validate_act1); return false; } if (document.subscription_form.email.value == 'Email') { alert(validate_act1); return false; } document.getElementById('subscription_form').submit(); return true; } function validate_disc() { if (document.formD.nick.value.length<1) { alert(validate_disc_act1); return false; } if (document.formD.topic.value.length<1) { alert(validate_disc_act2); return false; } document.getElementById('formD').submit(); return true; } function validate_search() { if (document.AdvancedSearchInCategory.search_price_from.value != "" && ((document.AdvancedSearchInCategory.search_price_from.value < 0) || isNaN(document.AdvancedSearchInCategory.search_price_from.value))) { alert(validate_search_act1); return false; } if (document.AdvancedSearchInCategory.search_price_to.value != "" && ((document.AdvancedSearchInCategory.search_price_to.value < 0) || isNaN(document.AdvancedSearchInCategory.search_price_to.value))) { alert(validate_search_act1); return false; } document.getElementById('AdvancedSearchInCategory').submit(); return true; } function doCL() { if(document.getElementById('cprbox')){ document.getElementById('cprbox').innerHTML = doCL_act1 + ' ' + doCL_act2; document.getElementById('axcrt').innerHTML = doCL_act3; } } function renbox() { if(document.getElementById('axcrt')){ document.getElementById('axcrt').innerHTML = renbox_act1; } } function renboxCL() { if(document.getElementById('axcrt')){ document.getElementById('axcrt').innerHTML = renboxCL_act1; } } function doreset() { if(document.getElementById('axcrt')){ document.getElementById('axcrt').innerHTML = doreset_act1; } } function printcart() { var agt=navigator.userAgent.toLowerCase(); var is_major = parseInt(navigator.appVersion); var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)); var is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) && (agt.indexOf("msie 7.")==-1) && (agt.indexOf("msie 8.")==-1)); if ( is_ie6 ){ document.write('