function validateForm(form){

	var connectiontype  =  form.connectiontype;
	var pups_eurostar  =  form.pups_eurostar;

	for (i = 0; i < connectiontype.length; i++) {
/*
		if(connectiontype[i].id=='eurostar'){
			if (connectiontype[i].checked){
				if (pups_eurostar.selectedIndex<1){
					alert('Please select a Eurostar pick up point.');
					return false;
				}
				else return true;
			}
		}
*/
		if (connectiontype[i].checked) return true;
	}

	alert('Please select a connection type.');
	return false;
}

function submitform(formname)
{

	// var valid = document.forms[formname].onsubmit();
	var valid = validateForm(document.forms[formname]);



	if(valid)
	{

		document.getElementById(formname).submit();
		//eval(formname).submit();
	}
}

