//otwarcie nowego okna function displayWindow(url, width, height) { var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no, top=50, left=150' ); } function displayWindowWS(url, width, height) { var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,status=yes,menubar=no, top=50, left=150' ); } function displayWindownew(url, width, height) { var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no, top=50, left=150' ); } function show_ab(zmienna) { alert('Dostęp do ksiązki adresowej wymaga zalogowania !'); } //JS dla ksiazki adresowej function nop() {} function showphones(x) { if (PHONE_LIST != null) { PHONE_LIST.value = x; //alert(x); formularz.action.value=0; formularz.submit(); } } function copy(x) { if (AB_DateField != null) { AB_DateField.value = x; } } function exit() { window.close(); return 0; } function ShowInfo(tekst) { } function ReturnAB() { // setDateField(document.forms[0].nick); //parent.document.forms.biorytm.gsm.value; // x = document.forms[0].gsm.value; // alert (AB_DateField.value); } function ResizeWindow(w,h) { if (parseInt(navigator.appVersion)>3) { if (navigator.appName=="Netscape") { top.outerWidth=w; top.outerHeight=h; } else top.resizeTo(w,h); } } function round(number,X) { // rounds number to X decimal places, defaults to 2 X = (!X ? 2 : X); return Math.round(number*Math.pow(10,X))/Math.pow(10,X); } function sendform(o) { msg = "Oświadczam, że świadomie wyrażam zgodę na otrzymywanie SMS-ów reklamowych wysyłanych przez SuperSMS.pl"; if (o.free.checked) { if (confirm(msg)) { o.submit(); } } else o.submit(); }