function validateContact()
{
	var txtProjectName = window.document.forms[0].txtProjectName;
	var txtSiteAddress = window.document.forms[0].txtSiteAddress;
	var txtContactPerson = window.document.forms[0].txtContactPerson;
	var txtDuration = window.document.forms[0].txtDuration;
	var txtTel = window.document.forms[0].txtTel;
	var txtCell = window.document.forms[0].txtCell;
	var txtEmail = window.document.forms[0].txtEmail;
	var txtStartDate = window.document.forms[0].txtStartDate;
	var txtEndDate = window.document.forms[0].txtEndDate;
	
	var error = false;
	var focusControl = null;
	var errorTxt = "Please correct the following : ";
	
	if (txtProjectName.value.length == 0)
	{
		errorTxt += "\n  - Enter a project name";
		if (focusControl == null) focusControl = txtProjectName;
	}
	if (txtContactPerson.value.length == 0)
	{
		errorTxt += "\n  - Enter a contact person";
		if (focusControl == null) focusControl = txtContactPerson;
	}
	if (txtSiteAddress.value.length == 0)
	{
		errorTxt += "\n  - Enter a site address";
		if (focusControl == null) focusControl = txtSiteAddress;
	}
	if (txtTel.value.length == 0)
	{
		errorTxt += "\n  - Enter a telephone number";
		if (focusControl == null) focusControl = txtTel;
	}
	if (txtCell.value.length == 0)
	{
		errorTxt += "\n  - Enter a cellular number";
		if (focusControl == null) focusControl = txtCell;
	}
	if (txtDuration.value.length == 0)
	{
		errorTxt += "\n  - Enter a project duration";
		if (focusControl == null) focusControl = txtDuration;
	}
	if (txtEmail.value.length == 0 
		|| txtEmail.value.indexOf('.') == -1
		|| txtEmail.value.indexOf('@') == -1)
	{
		errorTxt += "\n  - Enter a valid e-mail address";
		if (focusControl == null) focusControl = txtEmail;
	}
	if (txtStartDate.value.length == 0)
	{
		errorTxt += "\n  - Enter a start date";
		if (focusControl == null) focusControl = txtStartDate;
	}
	if (txtEndDate.value.length == 0)
	{
		errorTxt += "\n  - Enter an end date";
		if (focusControl == null) focusControl = txtEndDate;
	}

	if (errorTxt.length > 32)
	{
		focusControl.focus();
		alert(errorTxt);
		return false;
	}
	
	return true;
}
