var returnUrl = "";var baseDomain = "http://" + window.location.hostname;
function wopen(url, name, w, h){w += 32;h += 96;wleft = (screen.width - w) / 2;wtop = (screen.height - h) / 2; var win = window.open(url, name, 'width=' + w + ', height=' + h + ', ' + 'left=' + wleft + ', top=' + wtop + ', ' + 'location=no, menubar=no, ' + 'status=no, toolbar=no, scrollbars=no, resizable=no');}
function redirect(url) { window.location = url; }function n(url) { redirect(url); }
function uncache(url){var d = new Date();var time = d.getTime();return url + '&uct='+time;}
function sKey() {var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; else return true; if (keycode == 13){doSearch();return false;}else return true;}
function doSearch() {var txtSearch = document.getElementById("txtSearch"); if (txtSearch.value.length >= 3) { n("/search/?q=" + encodeURIComponent(txtSearch.value)); }}
function ssKey() {var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; else return true; if (keycode == 13){doSignup();return false;}else return true;}
function getValue(obj) { if (obj != null) { return obj.options[obj.selectedIndex].value;}}
function getStyleObject(objectId) { if(document.getElementById && document.getElementById(objectId)) { return document.getElementById(objectId).style; } else if (document.all && document.all(objectId)) {return document.all(objectId).style; } else if (document.layers && document.layers[objectId]) {return document.layers[objectId]; } else { return false; }}
function changeObjectVisibility(objectId, newVisibility) { var styleObject = getStyleObject(objectId); if(styleObject) { styleObject.visibility = newVisibility; if (newVisibility == "visible") { styleObject.display = 'block'; } else { styleObject.display = 'none'; }return true; } else { return false; }}
function Disable(obj) {try { obj.disabled = true; } catch (exception) { }}function Enable(obj) {try { obj.disabled = false; } catch (exception) { }}
function HomePage() { if ( ! document.all ) { alert("This function doesn't work under Mozilla Browsers - Netscape or FireFox! \n\nPlease set it at:\n\tEdit/Preferences/Navigator \nmanualy!"); } else { newHomepage.style.behavior='url(#default#homepage)';newHomepage.setHomePage(baseDomain); } }
function textCounter(o, maxlimit) { var charsleft = (maxlimit - o.value.length); document.getElementById('charsleft').innerHTML = charsleft; if (charsleft <= 0) { o.value = o.value.substring(0, maxlimit); }}
function printPage() {window.print();}function spo(obj) {obj.className = "productoption_on";}function spb(obj) {obj.className = "productoption";}
function scso(obj) {obj.className = "color_on";}function scsb(obj) {obj.className = "color";}function co(obj) { obj.className = "menuItem_on"; }
function cob(obj) { obj.className = "b_on"; }function ct(obj) { obj.className = "menuItem_off"; }function plo(obj) { obj.className = "plo"; }
function pl(obj) { obj.className = "property"; }function cb(obj) { obj.className = "b"; }function ro(obj) { obj.className = "n_on"; }
function rt(obj) { obj.className = "n_off"; }function cso(obj) { obj.className = "submenuItem_on"; }function cst(obj) { obj.className = "submenuItem_off"; }
function cmo(obj) { obj.className = "mi_on"; }function cmb(obj) { obj.className = "mi"; }function Print() {window.print(); }
function sS(e) {var keycode;var keychar;var numcheck;if(window.event) {keycode = e.keyCode;}else if(e.which) {keycode = e.which;} else { return true; }if (keycode == 13){doSearch();return false;}else return true;}
function SetCurrency(obj) { window.location.href = "/setcurrency/?id=" + obj.options[obj.selectedIndex].text + '&r=' + window.location.href;}
