function hideMenuLinks(cont) { if($('#categories > li > ul.vmenu'+cont).css('display') == 'block') { $('#categories > li > ul.vmenu'+cont).css('display', 'none'); } else { $('#categories > li > ul').css('display', 'none'); $('#categories > li > ul.vmenu'+cont).css('display', 'block'); } return true; } function dojoContactFormProcessing(name, email, topic, text) { if(name != "" && email != "" && topic != "" && text != "") { $.ajax({ type: "POST", url: "bg/dojoContactFormProcessing", data: {name: name, email: email, topic: topic, text: text}, dataType: "json", async: false, cache: false, success: function(data){ alert(data.msg); if(data.status == 1) { //dijit.byId('dojoContact').hide(); } }, error: function(er1, er2, er3) { alert('Error! '+er1+er2+er3); } }); } } var secondDlg; function pause(numberMillis) { var now = new Date(); var exitTime = now.getTime() + numberMillis; while (true) { now = new Date(); if (now.getTime() > exitTime) return; } } function dojoAddOffers() { var products = new Array(); /*for(x in document.product_order.elements) { var y = document.product_order.elements[x]; }*/ for(i=1;i'+offer_sizes[i]+''; } for(i in offer_colors) { html_colors += ''; } html += ''; html += ""; html1.innerHTML = html; products_index+=1; document.getElementById('order_sets').appendChild(html1); } function removeDOM_id(element) { var e = document.getElementById(element); if(!e) alert("There is no element with the id: "+element); e.removeChild(e.childNodes[0]); }