function IsValidTextBox(ID)
{
	if(document.getElementById( ID ).value == '')
	{
		return false;
	}
	
	return true;
}
function IsValidSelectBox(ID)
{
	if(document.getElementById( ID ).value == 0)
	{
		return false;
	}
	return true;
}

function ValidateSearchExpertise()
{
	if( !IsValidSelectBox( 'Select1' ))
	{
		alert( 'Please make a selection before clicking the Search button.' );
		return false;
	}

	return true;
}

function ValidateSearchKeyword()
{
	if( !IsValidTextBox( 'Text2' ))
	{
		alert( 'Please enter a search term before clicking the Search button.' );
		return false;
	}

	return true;
}
function ValidateExpertise( ID )
{
	if( !IsValidTextBox( ID ) )
	{
		alert( 'Please enter an expertise before clicking the Submit button.' );
		return false;
	}
					
}
function ValidateStaff()
{
	if(!IsValidTextBox('textfield'))
	{
		alert( 'Please enter a First Name before clicking the Submit button.' );
		return false;
	}
	if(!IsValidTextBox('textfield2'))
	{
		alert( 'Please enter a Last Name before clicking the Submit button.' );
		return false;
	}
	if(!IsValidTextBox('textfield3'))
	{
		alert( 'Please enter a Title before clicking the Submit button.' );
		return false;
	}
	if(!IsValidTextBox('textfield4'))
	{
		alert( 'Please enter a Department before clicking the Submit button.' );
		return false;
	}
	if(!IsValidTextBox('textfield5'))
	{
		alert( 'Please enter a Description before clicking the Submit button.' );
		return false;
	}
	if(!IsValidTextBox('textfield6'))
	{
		alert( 'Please enter a Email before clicking the Submit button.' );
		return false;
	}
	if(!IsValidTextBox('textfield7'))
	{
		alert( 'Please enter a Phone before clicking the Submit button.' );
		return false;
	}
	if( !IsValidSelectBox( 'exp1' ) )
	{
		alert( 'Please enter an expertise before clicking the Submit button.' );
		return false;
	}
}