/////////////////////////////////////////
function check_mail(obj){
		if(obj.fname.value==""){
			obj.fname.focus();
			alert("הקלד שם פרטי");
			return false;
		}
		
		var ml=obj.email.value;
		if(ml.indexOf("@")==-1){
		alert("דוא''ל לא תקין");
		obj.email.focus();
		return false;
		}
	
		if(ml.indexOf(".")==-1){
		alert("דוא''ל לא תקין");
		obj.email.focus();
		return false;
		}
	return true;
}
/////////////////////////////////////////
function check_buy(obj){
		if(obj.fname.value==""){
			obj.fname.focus();
			alert("הקלד שם פרטי");
			return false;
		}
		if(obj.sname.value==""){
			obj.sname.focus();
			alert("הקלד שם משפחה");
			return false;
		}

		if(obj.email.value==""){
			obj.email.focus();
			alert("הקלד דוא''ל");
			return false;
		}

		var ml=obj.email.value;
		if(ml.indexOf("@")==-1){
		alert("דוא''ל לא תקין");
		obj.email.focus();
		return false;
		}
	
		if(ml.indexOf(".")==-1){
		alert("דוא''ל לא תקין");
		obj.email.focus();
		return false;
		}

		if(obj.mob.value==""){
			obj.mob.focus();
			alert("הקלד טלפון נייד");
			return false;
		}

		if(obj.city.value==""){
			obj.city.focus();
			alert("הקלד עיר");
			return false;
		}
		
				if(obj.s_fname.value==""){
					obj.s_fname.focus();
					alert("הקלד שם בעל הכרטיס");
					return false;
				}

				if(obj.s_id.value==""){
					obj.s_id.focus();
					alert("הקלד ת.ז.");
					return false;
				}

				if(obj.card_type.value==""){
					obj.card_type.focus();
					alert("הקלד סוג הכרטיס");
					return false;
				}

				if(obj.validity_year.value=="0"){
					obj.validity_year.focus();
					alert("הקלד שנה");
					return false;
				}

				if(obj.validity_month.value=="0"){
					obj.validity_month.focus();
					alert("הקלד חודש");
					return false;
				}

				if(obj.card_number.value==""){
					obj.card_number.focus();
					alert("הקלד מספר הכרטיס");
					return false;
				}

				if(obj.cw_number.value==""){
					obj.cw_number.focus();
					alert("הקלד מספר CW");
					return false;
				}


	return true;
}
//////////////////////////////////////////
function check_buy_phone(obj){
		if(obj.fname.value==""){
			obj.fname.focus();
			alert("הקלד שם פרטי");
			return false;
		}
		if(obj.sname.value==""){
			obj.sname.focus();
			alert("הקלד שם משפחה");
			return false;
		}

		if(obj.mob.value==""){
			obj.mob.focus();
			alert("הקלד טלפון נייד");
			return false;
		}
		
		if(obj.email.value==""){
			obj.email.focus();
			alert("הקלד דוא''ל");
			return false;
		}

		var ml=obj.email.value;
		if(ml.indexOf("@")==-1){
		alert("דוא''ל לא תקין");
		obj.email.focus();
		return false;
		}
	
		if(ml.indexOf(".")==-1){
		alert("דוא''ל לא תקין");
		obj.email.focus();
		return false;
		}
		
		if(obj.city.value==""){
			obj.city.focus();
			alert("הקלד עיר");
			return false;
		}
		
	return true;
}
///////////////////////////////////////////////////////////
