﻿// Functions for job searching
// June 2007 : Javascript
// Tim Surtell @ Clario

//************************************************************************************************************
function SetupPage()
	{
	// Setup expanding table
	SetupExpandingTable('job_view_ajax.aspx?JobID=', false, true, true)	

	// Send Site to a Friend
	AutoSendSiteToAFriend()
	}
//************************************************************************************************************
function HoursClicked(Hours)
	{
	if (document.getElementById("chkFulltime").checked == false && document.getElementById("chkParttime").checked == false)
		{
		if (Hours.id == "chkFulltime")
			{
				document.getElementById("chkParttime").checked = true;
			}
			else
			{
				document.getElementById("chkFulltime").checked = true;
			}
		}
	}
//************************************************************************************************************
function TypeClicked(Type)
	{
	if (document.getElementById("chkPermanent").checked == false && document.getElementById("chkTemporaryContract").checked == false)
		{
		if (Type.id == "chkPermanent")
			{
				document.getElementById("chkTemporaryContract").checked = true;
			}
			else
			{
				document.getElementById("chkPermanent").checked = true;
			}
		}
	}
//************************************************************************************************************
function SpecialismChanged(Specialism)
	{
	for (var LoopCounter = 0; LoopCounter < Specialism.length; LoopCounter++)
		{
		if (Specialism.options[LoopCounter].value == "")
			{
			Specialism.options[LoopCounter].selected = false;
			}
		}
	}
//************************************************************************************************************
function AreaChanged(Area)
	{
	// Do nothing
	}
//************************************************************************************************************
function SalaryRangeChanged(SalaryRange)
	{
	// Do nothing
	}