// form validate
		
		function test(args) {
		alert(args);
		}
		function validate (f) {
		errors="";

// set var radio_choice to false
var radio_choice = false;

// Loop from zero to the one minus the number of radio button selections
for (counter = 0; counter < document.win.answer.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (document.win.answer[counter].checked)
radio_choice = true; 
}

if (!radio_choice)
{
// If there were no selections made display an alert box 
errors="Answer the question? \n";
}




		theRadio = 0;
		for(i=0;i<f.length;i++) {
			
			if (f[i].type == "hidden") {
				//ignore these fields
				
			} else {



				if (f[i].type=="text") {
				 str=f[i].value.length;
				 str2=0;
				 	while(str!=0) {
					//test(f[i].value.charCodeAt(str-1));
				 		if(f[i].value.charCodeAt(str-1)<=32) {
							str2+=1;
						}
						str-=1;
					}
					if(str2>=f[i].value.length-str2) {
					///
						errors+=f[i].name+" ?\n";
					
					} else {
						//specific matches only now
						if(f[i].name=="email") {
							chk2 = 0;
							str=f[i].value.length;
							while(str!=0) {
								if(f[i].value.charAt(str)==('@') || f[i].value.charAt(str)==('.')) {
								chk2+=1;
								}
							str-=1;			
							}
							if(chk2<2) {
							errors+="Email address is invalid\n";
							}
						}
					}
				}
			}	
		}
if ( document.win.terms.checked == false )
    {

        errors+="You must agree to the Channel4 Terms and Conditions\n";

    }
	


		if(errors!="") {
		test(("Sorry there appears to be a problem with details you supplied.\n\nPlease correct the following questions and try again. \n\n" +errors))
		return false;
		}
		
		}
//-->