function CheckPhone(phone) { var mobile = new RegExp("^05[02457][0-9]{7}$"); var bezeq = new RegExp("^0[23489][0-9]{7}$"); var other = new RegExp("^07[2347][0-9]{7}$"); if (phone.match(mobile) || phone.match(bezeq) || phone.match(other)) return true; else return false; } function numericControl( txt ) { var msg=txt.value; var chr; for ( i=0; i < msg.length; i++ ) { chr=msg.substring(i,i+1); if ( chr<"0" || chr>"9" ) { msg=msg.substring(0,i); txt.value=msg; } } } function clickagree() { if (document.getElementById('agree').checked) document.getElementById('SubmitButton').disabled=false; else document.getElementById('SubmitButton').disabled=true; } function validate() { if (document.getElementById('agree')) { if (!document.getElementById('agree').checked && document.getElementById('requestagree').value=='1') { alert('יש לאשר את תנאי השימוש'); return false; } } if (document.getElementById("txtName").value=='' || document.getElementById("txtName").value=='שם' || document.getElementById("txtName").value.length<2) { alert('אנא מלאו את שמכם'); return false; } if (document.getElementById("txtPhone").value=='' || document.getElementById("txtPhone").value=='טלפון נייד / טלפון') { alert('אנא מלאו מספר טלפון תקין בישראל\n\rכדי להקל על בתי העסק להשיג אתכם, השאירו מספר נייד'); return false; } if (!CheckPhone(document.getElementById("txtPhone").value)) { if (!confirm('מספר הטלפון אינו מספר טלפון תקין בישראל\r\nפניות ללא מספר טלפון תקין לא יענו\r\nהאם להמשיך ?')) return false; } if (document.getElementById("txtCity").value=='' || document.getElementById("txtCity").value=='עיר מגורים') { alert('שדה עיר מגורים חשוב על מנת שננתב את הפניה לעסק הקרוב אליכם\n\rאנא בחרו את עיר מגורכם'); return false; } /* if (document.getElementById("txtEmail").value!='' && document.getElementById("txtEmail").value!='כתובת אימייל') { var str = document.getElementById("txtEmail").value; var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i if (!filter.test(str)) { alert('כתובת האימייל שהכנסתם אינה תקינה\n\rהכניסו כתובת תקינה על מנת שנוכל ליצור אתכם קשר ולעדכנם במידה וקיימת בעיה'); return false; } } var DynamicCount = document.getElementById('DynamicCount').innerHTML; if (DynamicCount!="") { for (var x=0;x<(DynamicCount*1) ;x++ ) { if (document.getElementById("dynamicinput" + x).value=='' && document.getElementById("hdndynamicinput" + x).value!='*') { if (document.getElementById("hdndynamicinput" + x).value!='+') { alert('יש למלא את שדה החובה ' + document.getElementById("lbldynamicinput" + x).value); return false; } } else { if (document.getElementById("hdndynamicinput" + x).value=='-') { var a=0; var thisPallC=document.getElementsByName("dynamicinput" +x); for (counter = thisPallC.length-1; counter >= 0 ; counter--) { if (thisPallC[counter].checked) a++ } if (a==0) { alert('יש למלא את שדה החובה ' + document.getElementById("dynamiclabel" + x).innerHTML); return false; } } } } } */ return true; } function setValue(sender,value) { if (sender.value=='') sender.value=value; } function removeValue(sender,value) { if (sender.value==value) sender.value=''; } document.write('
Yes, Please! - השוואת מחירים
מחפש רואי חשבון?
מלא טופס וקבל עד 5 הצעות מחיר
* השירות מוגש ללא תשלום וללא התחייבות
');