function submit_frm(name)
{
	with(document.getElementById(name))
	{
		if(metroSelect.options[metroSelect.selectedIndex].value != '-'){
			if(choice[0].checked){//need, preview
				window.location.href = 'http://uk.easyroommate.com/default.aspx?pt=L&lc=1&mc='+metroSelect.options[metroSelect.selectedIndex].value+'&ac=' + document.getElementById('partner').value;	
			}
			else if(choice[1].checked){//have
				window.location.href = 'http://uk.easyroommate.com/default.aspx?at=h&lc=1&mc='+metroSelect.options[metroSelect.selectedIndex].value+'&ac=' + document.getElementById('partner').value;	
			}
			else{
				alert("You forgot to tell us if you have a room or if you need a room");
			}
		}
		else
			alert("Please select a city");
	}
}

function preselect(name)
{
	with(document.getElementById(name)){
		if(metroSelect.options[metroSelect.selectedIndex].value != '-'){
			window.location.href = 'http://uk.easyroommate.com/default.aspx?ac=' + document.getElementById('partner').value;
		}
		else
			alert("Please select a city");
	}
}
