<!--
function conf(a){
	
if (a==1){	
	$("#mailinglist").attr("checked",true);
	$("#mailinglistx").val('1'); 
}else{
	
	$("#mailinglist").attr("checked",false);
	$("#mailinglistx").val('0'); 
}
}
$(function(){ 
		$("#mailinglist").click(function(){
										 
										 if($(this).attr("checked")){
							tb_show('', '/validList.asp?keepThis=true&TB_iframe=true&height=150&width=300&modal=true');
										 }else{
											$("#mailinglistx").val('0'); 
										 }
										 })
	$("#formSubmit").css("cursor","pointer").click(function(){
				$("#smallForm").submit();
				$("#bigForm").submit();
									});
	$("#smallForm").submit(
						function(){
						if (validateForm()){
							 return true;
							}else{
							return false;
							}
						});	
 
	$("#bigForm").submit(
						function(){
						if (validateForm()){
							 return true;
							}else{
							return false;
							}
						});
	$("#email").blur(
					   function(){
						     if ($(this).val()){
						  if (IsEmail($(this).val())){
								$("#mailError").fadeOut('fast');	  
						  }else{
			       			 $("#mailError").fadeIn('fast');
						  }  }}).keyup(function(){
							  if (IsEmail($(this).val())){
											$("#mailError").fadeOut('fast');
		}});
	 			 
	});
 
function IsEmail(email) {
            var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
            if (regex.test(email)) return true;
            else return false;
        } 
function validateForm(){
	msg='';
	 rt=true; 
	$(".req").each(function() {
							
							  if (!$(this).val()||($(this).attr("id")=="email"&&!IsEmail($(this).val()) ) ){
								 rt=false; 
							    fName=$(this).attr("title");
								msg+="<li>";
								msg+=fName;
								 
								if ($(this).attr("id")=="email"&&!IsEmail($(this).val()) &&$(this).val() )  msg+=' - הכתובת אינה תקינה';
								 
								msg+="</li>";
							  }
					 })
	if(!rt)	tb_show('', '/formError.asp?msg='+msg+'&keepThis=true&TB_iframe=true&height=170&width=300&modal=true');
	return rt;
}

   // -->