function sendJoinUs()
{
    if(checkForm())
     {
       document.forms.joinus.submit();
     }
   
}

function checkForm()
  {
    var OrgName       = new String(document.joinus.organization.value);
	var orgfirstname  = new String(document.joinus.orgfirstname.value);
	var orglastname   = new String(document.joinus.orglastname.value);
	var orgposition   = new String(document.joinus.orgposition.value);
	var orgaddress1   = new String(document.joinus.orgaddress1.value);
	var orgcity       = new String(document.joinus.orgcity.value);
	var eaacfirstname = new String(document.joinus.eaacfirstname.value);
    var eaaclastname  = new String(document.joinus.eaaclastname.value);
	var eaacposition  = new String(document.joinus.eaacposition.value);
	var eaacaddress1  = new String(document.joinus.eaacaddress1.value);
	var eaaccity      = new String(document.joinus.eaaccity.value);
	var gtcfirstname  = new String(document.joinus.gtcfirstname.value);
	var gtclastname   = new String(document.joinus.gtclastname.value);
	var gtcposition   = new String(document.joinus.gtcposition.value);
	var gtcaddress1   = new String(document.joinus.gtcaddress1.value);
	var gtccity       = new String(document.joinus.gtccity.value);
	var hivcfirstname = new String(document.joinus.hivcfirstname.value);
	var hivclastname  = new String(document.joinus.hivclastname.value);
	var hivcposition  = new String(document.joinus.hivcposition.value);
	var hivcaddress1  = new String(document.joinus.hivcaddress1.value);
	var hivccity       = new String(document.joinus.hivccity.value);  
	
	
	
	
	
    if(OrgName.length < 2)
    {
		alert("Please Enter the Organization Name!");
      return false;
    }
	if(!document.joinus.r1.checked && !document.joinus.r2.checked && !document.joinus.r3.checked && !document.joinus.r4.checked && !document.joinus.r5.checked && !document.joinus.r6.checked && !document.joinus.r7.checked && !document.joinus.r8.checked && !document.joinus.r9.checked && !document.joinus.r10.checked && !document.joinus.r11.checked )
	 {
	   alert("Please select the Organization Type");
	    return false;
	 }
	if(orgfirstname.length < 1)
	  {
	     alert("Please Enter the Authorized Person's First Name!");
		 return false;
	  }
	if(orglastname.length < 1)
	  {
	     alert("Please Enter the Authorized Person's Last Name!");
		 return false;
	  }
	if(orgposition.length < 1)
	  {
	     alert("Please Enter the Authorized Person's Position!");
		 return false;
	  }
	if(orgaddress1.length < 1)
	  {
	     alert("Please Enter the Organization Mailing Address!");
		 return false;
	  }
	 if(orgcity.length < 1)
	  {
	     alert("Please Enter the Organization Mailing Address City!");
		 return false;
	  }
	 if(document.joinus.advcontact[0].checked)
	  {
	      if(eaacfirstname.length < 1)
		   {
		      alert("Please Enter the Advocacy Contact's First Name!");
			  return false;
		   }
	      else if(eaaclastname.length < 1)
		   {
		      alert("Please Enter the Advocacy Contact's Last Name!");
			  return false;
		   }
		  else if(eaacposition.length < 1)
		   {
		      alert("Please Enter the Advocacy Contact's Position!");
			  return false;
		   }
		  else if(eaacaddress1.length < 1)
		   {
		      alert("Please Enter the Advocacy Contact's Address!");
			  return false;
		   }
		  else if(eaaccity.length < 1)
		   {
		      alert("Please Enter the Advocacy Contact's Address City!");
			  return false;
		   }  
		} 
	  if(document.joinus.gtcontact[0].checked)
	    {
	          if(gtcfirstname.length < 1)
		       {
		      alert("Please Enter the Global Trade Contact's First Name!");
			  return false;
		   }
	      else if(gtclastname.length < 1)
		   {
		      alert("Please Enter the Global Trade Contact's Last Name!");
			  return false;
		   }
		  else if(gtcposition.length < 1)
		   {
		      alert("Please Enter the Global Trade Contact's Position!");
			  return false;
		   }
		  else if(gtcaddress1.length < 1)
		   {
		      alert("Please Enter the Global Trade Contact's Address!");
			  return false;
		   }
		  else if(gtccity.length < 1)
		   {
		      alert("Please Enter the Global Trade Contact's Address City!");
			  return false;
		   }  
	    }
	  
	    if(document.joinus.hivcontact[0].checked)
		 {
		  if(hivcfirstname.length < 1)
		       {
		      alert("Please Enter the HIV/AIDS Contact's First Name!");
			  return false;
		   }
	      else if(hivclastname.length < 1)
		   {
		      alert("Please Enter the HIV/AIDS Contact's Last Name!");
			  return false;
		   }
		  else if(hivcposition.length < 1)
		   {
		      alert("Please Enter the HIV/AIDS Contact's Position!");
			  return false;
		   }
		  else if(hivcaddress1.length < 1)
		   {
		      alert("Please Enter the HIV/AIDS Contact's Address!");
			  return false;
		   }
		  else if(hivccity.length < 1)
		   {
		      alert("Please Enter the HIV/AIDS Contact's Address City!");
			  return false;
		   }  
	    }
     else{
          return true;
    }
  }

