$(document).ready(function(){
// Quote Form 
	$('body.searchPage div.quoteForm').hide(); 
	$("div.getaquote").css('cursor', 'pointer').click(function () { 
		$('div.getaquote').removeClass('close'); // Find any buttons with close state and remove it
		$('div.quoteForm:visible').slideUp('fast'); // Hide any open forms
		$(this).parent().children('div.quoteForm:hidden').slideDown('fast') // Display form for button clicked 
			.parent().children('div.getaquote').addClass('close'); // Add close state to the button clicked
	});
// Dual List Boxes 
	$.configureBoxes();
	$.configureBoxes2();
// Add selected option values to hidden field
	$('.submit').click(function () { 
		var getoptions1 = $('#pgeFormsInner_ctl00_lstRegion1_box2View option'); // get options
		var getoptions2 = $('#pgeFormsInner_ctl00_lstRegion2_box2View option');
		var getvalues1 = $.map(getoptions1, function(elt, i) { return $(elt).text();}); // create array of option text
		var getvalues2 = $.map(getoptions2, function(elt, i) { return $(elt).text();}); 
		  $("input#pgeFormsInner_ctl00_lstRegion1_rightBoxValues").val(getvalues1); // add to input
		  $("input#pgeFormsInner_ctl00_lstRegion2_rightBoxValues").val(getvalues2)
	});
});

