function openPrintWindow(lang, order_id) { window.open('/pages/print_order.php?lang='+lang+'&order_id='+order_id,'print', 'scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no'); } function openNewWindow(url) { window.open(url); } function disableElement(element) { document.getElementById(element).disabled = true; document.getElementById(element).value = ''; } function enableElement(element) { document.getElementById(element).disabled = false; } function hideJavaScriptAlert() { document.getElementById('javascript_alert').style.display = 'none'; } function makeSaferPasswords(ids) { document.getElementById('js_login').value = 'active'; for (var i = 0; i < ids.length; i++) { if (document.getElementById(ids[i]).value != '') { document.getElementById(ids[i]).value = md5(document.getElementById(ids[i]).value); } } } function makeLink(prefix) { sdiak='áäčďéěíĺľňóôőöŕšťúůűüýřžÁÄČĎÉĚÍĹĽŇÓÔŐÖŔŠŤÚŮŰÜÝŘŽ +,/#&@"\''; bdiak='aacdeeillnoooorstuuuuyrzAACDEEILLNOOOORSTUUUUYRZ---------'; tx=''; txt=document.getElementById(prefix+'_name').value; for(p=0;p