/* Ensure that the required tick boxes have been checked */


function validateForm(){
	

	theForm = document.forms['signupform']
	
	
      	// first clear highlight colours in case they have been highlighted by a previous validation	
      	theForm.elements['uname'].style.backgroundColor = '#FFFFFF'
      	theForm.elements['email'].style.backgroundColor = '#FFFFFF'
      
       	
       	if (theForm.elements['uname'].value == ''){
       		   	theForm.elements['uname'].style.backgroundColor = '#FD1094';
    			theForm.elements['uname'].focus();  
       			alert('You must enter your name.');
       			return false; 
       	}
       	
       	if (theForm.elements['email'].value == ''){
       		   	theForm.elements['email'].style.backgroundColor = '#FD1094';
    			theForm.elements['email'].focus();  
    			alert('You must enter your email.');
       			return false; 
       	}
       	
	
	
	return true

}