function changeMe(e) {
				if(e.src.indexOf("_on.gif")!=-1) {
					a=e.src.replace("_on.gif",".gif");
				}
				
				else {a=e.src.replace(".gif","_on.gif");
				}
				
				e.src = a;
		}		


function check(id){

var choice_select = new Array();

choice_select[0]="0";
choice_select[1]="1";
choice_select[2]="2";
choice_select[3]="3";
choice_select[4]="4";
choice_select[5]="5";
choice_select[6]="6";
choice_select[7]="7";
choice_select[8]="8";
choice_select[9]="9";

alert(choice_select=[id]);
}





function validate(f) {
		var error="";
		var questionAnswered=false;
		
		if(f.occupation[0].checked || f.occupation[1].checked || f.occupation[2].checked || f.occupation[3].checked || f.occupation[4].checked || f.occupation[5].checked) {
		questionAnswered=true;
		}
		
		if(checkBlanks(f.forename)) {
			error+="Please enter your first name\n";
		} 
		if(checkBlanks(f.surname)) {
			error+="Please enter your second name\n";
		} 
		if(checkBlanks(f.address)) {
			error+="Please enter your address\n";
		} 
		if(checkBlanks(f.phone)) {
			error+="Please enter your phone number\n";
		} 
		if(checkBlanks(f.dob)) {
			error+="Please enter your date of birth\n";
		} 
		if(!questionAnswered) {
			error+="Please select an occupation\n"
		}
		
		if(checkBlanks(f.why_do_you_want_to_work_at_c4)) {
			error+="Please tell us why you want to work for channel4\n";
		} 
		if(checkBlanks(f.where_do_you_want_to_work_at_c4)) {
			error+="Please tell us which area you want to work in\n";
		}
		if(checkBlanks(f.length_required)) {
			error+="Please tell us the length of placement you want\n";
		}
		if(checkBlanks(f.dates_available)) {
			error+="Please tell us the placement dates you want\n";
		} 
		
		
	if(error!="") {
		alert(error);
		return false
	} else {
		return true;
	}
	
	}
	
	function checkBlanks(e) {
		if(e.value=="" ||e.value==" " || e.value=="\n") {
			return true;
		} else {
			return false;
		}	
	}
