//*******************************
//* castleleasing.js                                         *
//*                                                    *

function showMap()
{
document.location.href = 'http://www.streetmap.co.uk/newmap.srf?x=462312&y=219425&z=3&st=4&tl=&lt;b&gt;Castle+Leasing+-+Contract Hire,+Personal+Contract+Purchase,+Vehicle+Finance&lt;/b&gt;&bi=background=http://www.castleleasing.co.uk/images/bckgnd.gif&lu=N&ar=y';
}

function bookmarkPage(who){
	who = document.title + " - " + who;
	window.external.AddFavorite(document.location.href,who);
}

function fillDetails()
{
	var currentDetails = cl_edit.Car_Details.value;
	
	var extrasText = "";
	
	if (cl_edit.Sat_Nav.selectedIndex == 2) {extrasText = extrasText + "Satellite Navigation, ";}
	if (cl_edit.Air_Con.selectedIndex == 2) {extrasText = extrasText + "Air Conditioning, ";}
	if (cl_edit.CD_Player.selectedIndex == 2) {extrasText = extrasText + "CD Player, ";}
	if (cl_edit.Alloys.selectedIndex == 2) {extrasText = extrasText + "Alloy Wheels, ";}
	if (cl_edit.Leather.selectedIndex == 2) {extrasText = extrasText + "Leather Seats, ";}
	if (cl_edit.Alarm.selectedIndex == 2) {extrasText = extrasText + "Security Alarm, ";}

	currentDetails = currentDetails + extrasText; 

	if (cl_edit.Transmission.value != "") {currentDetails = currentDetails + cl_edit.Transmission.value + " Transmission. ";}
	if (cl_edit.Fuel.value != "") {currentDetails = currentDetails + cl_edit.Fuel.value + ". ";}
	if (cl_edit.MPG.value != "") {currentDetails = currentDetails + cl_edit.MPG.value + " MPG. ";}
	if (cl_edit.CO2_Figure.value != "") {currentDetails = currentDetails + "CO2_Figure: " + cl_edit.CO2_Figure.value + ". ";}
	if (cl_edit.Ins_Group.value != "") {currentDetails = currentDetails + "Insurance Group: " + cl_edit.Ins_Group.value + ". ";}

	cl_edit.Car_Details.value = currentDetails;
	
	return true;
}