document.observe("dom:loaded", bodyOnLoad);

function bodyOnLoad(event)
{
	if ( location.toString().indexOf( "?" ) >= 0 )
	{
		$( "hidden_query" ).value = location.search.split( '?' )[1];
		if ( location.toString().indexOf( "FeatureRequest" ) >= 0 )
			$( "select_supportType" )[1].selected = true;
		else if ( location.toString().indexOf( "Feedback" ) >= 0 )
			$( "select_supportType" )[2].selected = true;
	}
}

function toggleRadio(toggle)
{
	if ( toggle )
		$( 'radio_contact0' ).checked = true;
	else
		$( 'radio_contact1' ).checked = true;
}
