function viewChildNav(element)
{
		if(document.getElementById(element).style.display=="none")
			document.getElementById(element).style.display="block";
		else
			document.getElementById(element).style.display="none";	
	}
function offChildNav(element)
{
	document.getElementById(element).style.display="none";
	}
	
	

function joinM(lang_id)
 {
 	my_bool =  FormValid(document.getElementById("form"),lang_id);
	
	
	
	if(my_bool) {
		
		
	
			var f_name = document.getElementById("f_name").value;
	var l_name = document.getElementById("l_name").value;
	var email = document.getElementById("email").value;
	var list_id = document.form.list_id;
	var list_id_str="";
	for(i=0; i<list_id.length;i++)
	{
		if(list_id[i].checked==true)
		{
			if(i==0)
				list_id_str=list_id_str + list_id[i].value;
			else
				list_id_str=list_id_str + "," + list_id[i].value;
		}
	}
	
	  if(email != "" && f_name != "" && l_name != "" && email != "" && list_id != "" ){
		 
		            var sUrl = "/insert.asp?email="+email+"&f_name="+f_name+"&l_name="+l_name+"&list_id="+list_id_str;
					
					var sParam = null;
					var oXml = sendXMLHTTP(sUrl,sParam, false, "GET");
				
					if(oXml.status == 200 && oXml.responseText != -1)
					{
					  var returnVal = oXml.responseText;
					 
					 if(returnVal=="True")
					 {
						 
						if(lang_id==2) 
							returnVal="תודה על הרשמתך &nbsp;";
						else
							returnVal="Thank you";
					 }
					 else
					 {
						 if(lang_id==2) 
							returnVal="כתובת הדואר האלקטרוני אינה תקנית &nbsp;";
						else
							returnVal="Invalid E-mail address";
						
					 }
					  document.getElementById("alert_m").innerHTML = returnVal;
					}
					else if(oXml.status != 200)
					{
					
					}
			}
	
	
	}
	else
		return;
	
 }





