	// Function to view the job details. Used in ViewVacancy.asp
	function ViewJobDetails(intId)
	{	
		document.frmPannel.hdnId.value = intId;
		document.frmPannel.hdnAction.value = "View";
		document.frmPannel.action = "ViewVacancyDetails.asp";
		document.frmPannel.target = "_self";
		document.frmPannel.submit();
	}

	// Function to apply for a job. Used in ViewVacancy.asp, View VacancyDetails.asp
	function ApplyForJob(intId)
	{	
		document.frmPannel.hdnId.value = intId;
		document.frmPannel.hdnAction.value = "Apply";
		document.frmPannel.action = "ApplyForVacancy.asp";
		document.frmPannel.target = "_self";
		document.frmPannel.submit();
	}

	// Function to tell your friend about a vehicle. Used in VehicleDetails.asp
	function TellYourFriend(intId, intImageId)
	{	
		document.frmPannel.hdnId.value = intId;
		document.frmPannel.hdnImageId.value = intImageId;
		document.frmPannel.hdnAction.value = "View";
		document.frmPannel.action = "VehicleTellYourFriend.asp";
		document.frmPannel.target = "_self";
		document.frmPannel.submit();
	}
	
	
	// Function to view the User Car Details. Used in Vehicles.asp
	function ViewVehicleDetails(intId, intImageId)
	{	
		document.frmPannel.hdnId.value = intId;
		document.frmPannel.hdnImageId.value = intImageId;
		document.frmPannel.hdnAction.value = "View";
		document.frmPannel.action = "VehicleDetails.asp";
		document.frmPannel.target = "_self";
		document.frmPannel.submit();
	}

	// Function to view the Search Details in Used Vehicle List. Used in Vehicles.asp
	function NewSearch(strSearchType)
	{	
		document.frmSearchCriteria.hdnSearchType.value = strSearchType;
		document.frmSearchCriteria.action = "Vehicles.asp?action=search#search";
		document.frmSearchCriteria.target = "_self";
		document.frmSearchCriteria.submit();
	}

	// Function to view the Search Details in Used Vehicle List. Used in Vehicles.asp
	function ShowMoreOptions()
	{	
		document.frmSearchCriteria.hdnSearchType.value = "Advanced";
		document.frmSearchCriteria.hdnMoreOptions.value = "Show";
		document.frmSearchCriteria.action = "Vehicles.asp?action=search#search";
		document.frmSearchCriteria.target = "_self";
		document.frmSearchCriteria.submit();
	}


	// Function to return to vehicles list from vehicle details. Used in VehicleDetails.asp
	function BackToVehicles()
	{	
		document.frmPannel.hdnId.value = "";
		document.frmPannel.hdnImageId.value = "";
		document.frmPannel.hdnAction.value = "Search";
		document.frmPannel.action = "Vehicles.asp";
		document.frmPannel.target = "_self";
		document.frmPannel.submit();
	}

	// Function to expand the vehicle specification category of vehicles. Used in Vehicles.asp
	function Expand(intId)
	{
		document.frmSearchCriteria.hdnSearchType.value = "Advanced";
		document.frmSearchCriteria.hdnMoreOptions.value = "Show";
		document.frmSearchCriteria.hdnExpId.value = intId;
		document.frmSearchCriteria.action = "Vehicles.asp?action=Expand#"+intId;
		document.frmSearchCriteria.target = "_self";
		document.frmSearchCriteria.submit();
	
	}
	