function set_choices(n)
{
	if(document.forms.quote_form.where[0].checked) internet();
	if(document.forms.quote_form.where[1].checked) other();
}


function internet()
{
	with(document.forms.quote_form.where_select.options[0])
{
	selected = true;
	text = "Select from list...";
	value="";
}

with(document.forms.quote_form.where_select.options[1])
{ text="Google"; }

with(document.forms.quote_form.where_select.options[2])
{ text="Yahoo"; }

with(document.forms.quote_form.where_select.options[3])
{ text="Lycos"; }

with(document.forms.quote_form.where_select.options[4])
{ text="AltaVista"; }

with(document.forms.quote_form.where_select.options[5])
{ text="Yell.com"; }

with(document.forms.quote_form.where_select.options[6])
{ text="Ask Jeeves"; }

with(document.forms.quote_form.where_select.options[7])
{ text="Other search engine"; }
}


function other()
{
	with(document.forms.quote_form.where_select.options[0])
{
	selected = true;
	text = "Select from list...";
	value="";
}

with(document.forms.quote_form.where_select.options[1])
{ text="Link from another website"; }

with(document.forms.quote_form.where_select.options[2])
{ text="Yellow Pages"; }

with(document.forms.quote_form.where_select.options[3])
{ text="Recommendation"; }

with(document.forms.quote_form.where_select.options[4])
{ text="Previous rental"; }

with(document.forms.quote_form.where_select.options[5])
{ text="Signpost"; }

with(document.forms.quote_form.where_select.options[6])
{ text="Livery on vehicles"; }

with(document.forms.quote_form.where_select.options[7])
{ text=""; }
}
function datacheck(form)
{
	if (quote_form.firstname.value == "")
	{
		alert("Please fill in your first name");
		quote_form.firstname.focus();
		return false;
	}
	else
    
	if (quote_form.lastname.value == "")
	{
		alert("Please fill in your last name");
		quote_form.lastname.focus();
		return false;
	}
	else
  
	if (quote_form.email.value == "")
	{
		alert("Please supply an email address");
		quote_form.email.focus();
		return false;
	}
	else

	if (quote_form.email.value.indexOf("@") == -1)
	{
		alert("E-mail address error: \n The '@' character is missing - please retype");
		quote_form.email.focus();
		return false;
	}
	else

	if (quote_form.re_email.value == "")
	{
		alert("Please re-enter email address");
		quote_form.re_email.focus();
		return false;
	}
	else

	if (quote_form.re_email.value != quote_form.email.value)
	{
		alert("Please check your email address entries");
		quote_form.re_email.focus();
		return false;
	}
	else

	if (quote_form.phone.value == "")
	{
		alert("Please supply a phone number");
		quote_form.phone.focus();
		return false;
	}
	else

    return true;

}