function Join(form)
{  
   var user = form.username.value;
   var pass = form.password.value;
   var correo = form.email.value;
   var i;
   
   for (i = 0; i < form.plan.length; i++) {
      if (form.plan[i].checked) {
	  var planes = form.plan[i].value;
      }
   }
   
   form.user_variable_3.value = correo;
   form.user_variable_4.value = user;
   form.user_variable_5.value = pass;
   
   if (form.username.value.length < 5)
   { alert("Benutzernamen muss mind. 5, und max. 10 Zeichen haben"); form.username.focus(); return; }
   
   if (form.username.value.length > 15)
   { alert("Benutzernamen muss mind. 5, und max. 10 Zeichen haben"); form.username.focus(); return; }
   
   if (form.password.value.length < 5)
   { alert("Passwort muss mind. 5, und max. 10 Zeichen haben"); form.password.focus(); return; }
   
   if (form.password.value.length > 15)
   { alert("Passwort muss mind. 5, und max. 10 Zeichen haben"); form.password.focus(); return; }
   
   if (form.email.value == "")
   { alert("Falsche Email Adresse"); form.email.focus(); return; }
   
   if (form.email.value.indexOf('@', 0) == -1 ||
      form.email.value.indexOf('.', 0) == -1)
   { alert("Falsche Email Adresse"); form.email.focus(); return; }
   
   switch(planes){
	   case '0':
	   form.amount.value = "17.50";
	   if (form.method[0].checked == true){ form.action='https://secure.zombaio.com/?287649884.1007430.ZOM'; }
	   if (form.method[1].checked == true){ form.action='https://www.directebanking.com/payment/start'; }
	   break;
	   case '1':
	   form.amount.value = "36.75";
	   if (form.method[0].checked == true){ form.action='https://secure.zombaio.com/?287649884.1013940.ZOM'; }
	   if (form.method[1].checked == true){ form.action='https://www.directebanking.com/payment/start'; }
	   break;
	   case '2':
	   if (form.method[0].checked == true){ form.action='https://secure.zombaio.com/?287649884.1013982.ZOM'; }
	   if ((form.method[1].checked) && (planes == 2)){ alert("Waehle deine Mitgliedsart"); return; }
	   break;
   }
			
   form.submit();

}

function NoTrial(form)
{
   var i;
   
   for (i = 0; i < form.method.length; i++) {
      if (form.method[i].checked) {
	  var metodos = form.plan[i].value;
      }
   }

   if (metodos == 0){ document.getElementById('t1').style.visibility = 'visible'; document.getElementById('t2').style.visibility = 'visible'; }
   if (metodos == 1){ document.getElementById('t1').style.visibility = 'hidden'; document.getElementById('t2').style.visibility = 'hidden'; }

}

function Validate(form)
{
   
   if (form.username.value.length < 5)
   { alert("Benutzernamen muss mind. 5, und max. 10 Zeichen haben"); form.username.focus(); return; }
   
   if (form.username.value.length > 15)
   { alert("Benutzernamen muss mind. 5, und max. 10 Zeichen haben"); form.username.focus(); return; }
   
   if (form.password.value.length < 5)
   { alert("Passwort muss mind. 5, und max. 10 Zeichen haben"); form.password.focus(); return; }
   
   if (form.password.value.length > 15)
   { alert("Passwort muss mind. 5, und max. 10 Zeichen haben"); form.password.focus(); return; }
   
   form.action='http://mitglieder.geilefreundin.com/';
			
   form.submit();

}
