﻿// Functions for user editing
// June 2007 : Javascript
// Tim Surtell @ Clario

//************************************************************************************************************
function SetupClientAddSection()
	{
	// Initialise variables
	PayAmountMaximumHadFocus = false;
	PayPeriod = "PerAnnum";
	UpdateDisplayFlag = false;
	
	//Set up pay display update timer
	UpdateDisplayTimer = window.setInterval(UpdateDisplayAJAX, 2000);

	// Salary
	UpdatePayPeriod();

	// Set focus
	document.getElementById("txtForename").focus();
	document.getElementById("txtForename").select();
	}
//************************************************************************************************************
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;
			}
		}
	}
