
function CheckPracticeAssessment()
{
	if ( document.form1.sContactTitle.value.Trim() == '' )
	{
		alert( 'You must enter a contact title.' );
		return false;
	}
	else if ( document.form1.sFirstName.value.Trim() == '' )
	{
		alert( 'You must enter a contact first name.' );
		return false;
	}
	
	else if ( document.form1.sLastName.value.Trim() == '' )
	{
		alert( 'You must enter a contact last name.' );
		return false;
	}

	else if ( document.form1.sBusinessName.value.Trim() == '' )
	{
		alert( 'You must enter a business name.' );
		return false;
	}
	else if ( document.form1.sAddress1.value.Trim() == '' )
	{
		alert( 'You must enter an address Line 1.' );
		return false;
	}
	else if ( document.form1.sTown.value.Trim() == '' )
	{
		alert( 'You must enter a town.' );
		return false;
	}
	else if ( document.form1.sPhone.value.Trim() == '' )
	{
		alert( 'You must enter a telephone number.' );
		return false;
	}
	
	return true;
	
}


String.prototype.IsWhiteSpace = function()
{
	return this == ' ' || this == '\t';
}
String.prototype.TrimLeft = function()
{
	var i=0;
	
	while (this.charAt(i).IsWhiteSpace())
		i++;
		
	return this.substr(i)
}
String.prototype.TrimRight = function()
{
	var i=this.length;
	
	while (this.charAt(i).IsWhiteSpace())
		i--;
		
	return this.substr(0,i+1)
}
String.prototype.Trim = function()
{
	return this.TrimLeft().TrimRight();
}
function IsInteger(value) 
{
	if ( value == parseInt(value) )
		return true;
	else
		return false;
}
	

