function whichButton(){
        

        if(theForm.Password.value == "") {
                 alert("Please enter your Password.");
                 theForm.Password.focus();
                 return(false);
                  
               
        } 
        
        if(theForm.Password2.value == theForm.Password.value){
 }
else{
                 alert("Please re-enter your Password correctly.");
                 theForm.Password2.focus();
                 return(false);
                  
               
        } 
         if(theForm.Firstname.value == "") {
                 alert("Please enter your First name.");
                 theForm.Firstname.focus();
                 return(false);
                  
               
        } 

         if(theForm.Surname.value == "") {
                 alert("Please enter your Surname.");
                 theForm.Surname.focus();
                 return(false);
                  
               
        } 
                if(theForm.Email.value == "") {
                 alert("Please enter your Email.");
                 theForm.Email.focus();
                 return(false);
                  
               
        } 
        
                 if(theForm.StreetAddress.value == "") {
                 alert("Please enter your Street Address.");
                 theForm.StreetAddress.focus();
                 return(false);
                  
               
 }

                         if(theForm.Suburb.value == "") {
                 alert("Please your Suburb.");
                 theForm.Suburb.focus();
                 return(false);
                  
               
        } 

	                         if(theForm.Postcode.value == "") {
                 alert("Please enter your Postcode.");
                 theForm.Postcode.focus();
                 return(false);
                  
               
        } 

                         if(theForm.State.value == "") {
                 alert("Please select your State.");
                 theForm.State.focus();
                 return(false);
                  
               
        } 

	var PurchasedChecked 


	for (var i=0; i<document.theForm.Purchased.length; i++) {
	
		if (document.theForm.Purchased[i].checked) {
		PurchasedChecked = document.theForm.Purchased[i].value
		}
		
	}
	
	
	if(!PurchasedChecked){ //if PurchasedChecked does not equal null
	alert("Have you purchased the lifestyle and weight loss starter pack?")
    theForm.Purchased[0].focus();
	 return(false);
	}
	else{
	

	if (

	theForm.Purchased[0].checked)
	{


	if (

	theForm.PackQ.value == "")
	{
		alert ('Please enter the code found inside your pack.');
		theForm.PackQ.focus();
		return false;
	} else { 	
	
	} 

	} else { 	
	
	} 
} 

                         if(theForm.HowHear.value == "") {
                 alert("How did you hear about us?");
                 theForm.HowHear.focus();
                 return(false);
                  
               
        } 
       } 