﻿function changeAction(which) {
    document.getElementById('quoteForm').action = "https://insurance.libertymutual.com/quote/start.do?src=responsible_" + which;
}

function submitGetAQuoteForm() { 
	if (document.getElementById('zipCodeOnPage').value.replace(/^\s+|\s+$/g, '') == '')
	{
		alert('Please enter a zip code.');
		return false;
	}

	$get('zipCode').value = $get('zipCodeOnPage').value;
	
	var hdnRes = document.getElementById('hdnRestrict');
	if (hdnRes != null) {
	    if (document.forms.quoteForm.lob.value == "Auto") {
	        selectLOB("H3");
	    }
	}
	
	$get('quoteForm').submit(); 
	return true;
}
