﻿// Functions for user editing
// June 2007 : Javascript
// Tim Surtell @ Clario

//************************************************************************************************************
function SetupClientAddSection()
	{
	// Set focus
	document.getElementById("txtForename").focus();
	document.getElementById("txtForename").select();

	// Specialisms
	StoreSpecialisms(document.getElementById("lstSpecialism1_lstSpecialisms"));
	SectorChanged(document.getElementById("lstSector1_lstSectors"));
	SectorChanged(document.getElementById("lstSector2_lstSectors"));
}
//************************************************************************************************************
function SetupJobDetailsSection()
	{
	// Set focus
	document.getElementById("txtTitle").focus();
	document.getElementById("txtTitle").select();
	}
//************************************************************************************************************
function ApplicationMethodClicked(Method)
	{
	if (document.getElementById("chkApplyByEmail").checked == false && document.getElementById("chkApplyByTelephone").checked == false)
		{
		if (Method.id == "chkApplyByEmail")
			{
				document.getElementById("chkApplyByTelephone").checked = true;
			}
			else
			{
				document.getElementById("chkApplyByEmail").checked = true;
			}
		}
	}

