<!-- 
function checkFields() {    
	if (document.register.firstname.value == '') {
		rc=alert('Please enter your first name');    
		return false;    
	}
	if (document.register.lastname.value == '') {
		rc=alert('Please enter your last name');    
		return false;    
	}
	if (document.register.address1.value == '') {
		rc=alert('Please enter your address details');    
		return false;    
	}
	if (document.register.city.value == '') {
		rc=alert('Please enter the city you live in');    
		return false;    
	}
	if (document.register.state.selectedIndex == '' && document.register.state_other.value == ''){
		rc=alert('Please select the name of the state you live in');    
		return false;    
	}
	if (document.register.postcode.value == '') {
		rc=alert('Please enter your postcode or zipcode');    
		return false;    
	}
	if (document.register.phone_contact.value == '' && document.register.phone_home.value == '') {
		rc=alert('Sorry - please enter either a day or evening contact number \nThis helps overcome any problems that may happen with shipping');    
		return false;    
	}
	if (document.register.email.value == '') {
		rc=alert('Please enter your email address');
		return false;
	}
	if (!document.register.email.value.match(/^([a-zA-Z0-9])+([.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+$/)) {
		rc=alert('Please check your email again as the email you entered is not valid\n');
		return false;
	}	

	// check media type buttons
	var media_type_selected = false;
	for (counter = 0; counter < document.register.media_type.length; counter++)
	{
		if (document.register.media_type[counter].checked)
		{
			media_type_selected = true;
		}
	}
	if (!media_type_selected)
	{
		rc=alert('Please select a media format.');
		return (false);
	}


		// check the radio buttons
	// ---------------- Video Format -------------------------
	var video_format_selected = false;
	// Loop from zero to the one minus the number of radio button selections
	for (counter = 0; counter < document.register.video_format.length; counter++)
	{
		// If a radio button has been selected it will return true
		// (If not it will return false)
		if (document.register.video_format[counter].checked)
		{
			video_format_selected = true; 
		}
	}
	if (!video_format_selected)
	{
		// If there were no selections made display an alert box 
			alert("Please select a a video format.");
			return (false);
	}

	if (document.register.video_format.selectedIndex == ''){
		rc=alert('Please select a preferred video format');    
		return false;    		
	}
	
	// ---------------- Audio Format -------------------------
	var audio_format_selected = false;
	// Loop from zero to the one minus the number of radio button selections
	for (counter = 0; counter < document.register.audio_format.length; counter++)
	{
		// If a radio button has been selected it will return true
		// (If not it will return false)
		if (document.register.audio_format[counter].checked)
		{
			audio_format_selected = true; 
		}
	}
	if (!audio_format_selected)
	{
		// If there were no selections made display an alert box 
			alert("Please select a a audio format.");
			return (false);
	}

	if (document.register.audio_format.selectedIndex == ''){
		rc=alert('Please select a preferred audio format');    
		return false;    		
	}

	// ------------------------- Card Type ------------------------
	var card_type_selected = false;
	// Loop from zero to the one minus the number of radio button selections
	for (counter = 0; counter < document.register.card_type.length; counter++)
	{
		// If a radio button has been selected it will return true
		// (If not it will return false)
		if (document.register.card_type[counter].checked)
		{
			card_type_selected = true; 
		}
	}
	if (!card_type_selected)
	{
		// If there were no selections made display an alert box 
			alert("Please select a credit card type.");
			return (false);
	}


	
	if (document.register.card_name.value == '') {
		rc=alert('Please enter the name on your credit card');
		return false;
	}
	if (document.register.card_number.value == '') {
		rc=alert('Please enter the number on your credit card');
		return false;
	}
	if (document.register.card_expiry.value == '') {
		rc=alert('Please enter the expiry date on your credit card');
		return false;
	}

return true;
}
// end hide -->
