function doLogin(frm){ if (document.forms[frm].email.value!=""){ if (document.forms[frm].pass.value!=""){ document.forms[frm].submit(); }else{ alert("חובה לציין סיסמא"); document.forms[frm].pass.focus(); return false; } }else{ alert("חובה לציין כתובת אימייל"); document.forms[frm].email.focus(); return false; } } function IsEmail(sText) { var at="@" var dot="." var lat=sText.indexOf(at) var lstr=sText.length var ldot=sText.indexOf(dot) if (sText=="" || sText==null){ return false } if (sText.indexOf(at)==-1 || sText.indexOf(at)==0 || sText.indexOf(at)==lstr){ return false } if (sText.indexOf(dot)==-1 || sText.indexOf(dot)==0 || sText.indexOf(dot)==lstr){ return false } if (sText.indexOf(at,(lat+1))!=-1){ return false } if (sText.substring(lat-1,lat)==dot || sText.substring(lat+1,lat+2)==dot){ return false } if (sText.indexOf(dot,(lat+2))==-1){ return false } if (sText.indexOf(" ")!=-1){ return false } return true } function changePrice(id,price,frmname){ //alert(document.forms[frmname].price.value); priceStr=document.forms[frmname].price.value str=priceStr.split('-'); //alert(str[0]+str[1]) document.getElementById(price).innerHTML=str[1]; document.forms[frmname].size.value=str[0]; } function doSendFriend() { if (IsEmail(document.frmContact.myemail.value)){ if (document.frmContact.myfname.value!=""){ if (IsEmail(document.frmContact.uremail.value)){ if (document.frmContact.urfname.value!=""){ document.frmContact.submit(); }else{ alert('חובה להזין שם מלא'); document.frmContact.urfname.focus(); } } else { alert('חובה להזין כתובת דואר אלקטרוני'); document.frmContact.uremail.focus(); } }else{ alert('חובה להזין שם מלא'); document.frmContact.myfname.focus(); } } else { alert('חובה להזין כתובת דואר אלקטרוני'); document.frmContact.myemail.focus(); } } function doJoin() { if(document.frmJoin.fname.value!=""){ if(document.frmJoin.lname.value!=""){ if(IsEmail(document.frmJoin.email.value)){ if(document.frmJoin.pass.value.length>=4){ if(document.frmJoin.pass.value==document.frmJoin.confirm.value){ //if(IsNumeric(document.frmJoin.pid.value)==true && document.frmJoin.pid.value.length==9){ //if(document.frmJoin.street.value!=""){ //if(IsNumeric(document.frmJoin.phone.value)==true && document.frmJoin.phone.value.length==7){ //if(document.frmJoin.kidomet.value!=""){ document.frmJoin.submit() //}else{alert("יש לבחור קידומת");document.frmJoin.kidomet.focus();} //}else{alert("יש למלא מספר טלפון");document.frmJoin.phone.focus();} //}else{alert("יש למלא את שם הרחוב");document.frmJoin.street.focus();} //}else{alert("תעודת זהות -בלבד 9 ספרות");document.frmJoin.pid.focus();} }else {alert("אימות סיסמא נכשל, נסה שנית");document.frmJoin.confirm.focus();} }else {alert("יש למלא סיסמא בעלת 4 ספרות או יותרd");document.frmJoin.pass.focus();} }else {alert("כתובת אימייל אינה נכונה");document.frmJoin.email.focus();} }else{alert("יש למלא שם משפחה");document.frmJoin.lname.focus();} }else{alert("יש למלא שם");document.frmJoin.fname.focus();} } var win=null; function NewWindow(mypage,myname,w,h,scroll,pos){ if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;} else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20} settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; win=window.open(mypage,myname,settings);} function printFlash(str){ document.write(str); } function disp(id){ var obj=document.getElementById(id) if(obj.className=='dispnone'){ obj.className='dispblock'; }else obj.className='dispnone' }