function clearField(fieldName){
	if(fieldName == 'first_name'){
		document.frmContact.first_name.style.backgroundColor = '#FFC';
		document.frmContact.first_name.style.color = '#000';
		if(document.frmContact.first_name.value == 'First Name'){
			document.frmContact.first_name.value = '';
			}
	} 
	if(fieldName == 'last_name') {
		document.frmContact.last_name.style.backgroundColor = '#FFC';
		document.frmContact.last_name.style.color = '#000';
		if(document.frmContact.last_name.value == 'Last Name'){
			document.frmContact.last_name.value = '';
		}
	}
	if(fieldName =='organization_name') {
		document.frmContact.organization_name.style.backgroundColor = '#FFC';
		document.frmContact.organization_name.style.color = '#000';
		if(document.frmContact.organization_name.value == 'Company'){
			document.frmContact.organization_name.value = '';
			}
	}
	if(fieldName =='e_mail') {
		document.frmContact.e_mail.style.backgroundColor = '#FFC';
		document.frmContact.e_mail.style.color = '#000';
		if(document.frmContact.e_mail.value == 'E-mail Address'){
			document.frmContact.e_mail.value = '';
		}
	}
	if(fieldName =='telephone') {
		document.frmContact.telephone.style.backgroundColor = '#FFC';
		document.frmContact.telephone.style.color = '#000';
		if(document.frmContact.telephone.value == 'Telephone'){
			document.frmContact.telephone.value = '';
		}
	}
	if(fieldName =='txtComments') {
		document.frmContact.txtComments.style.backgroundColor = '#FFC';
		document.frmContact.txtComments.style.color = '#000';
		if(document.frmContact.txtComments.value == ''){
			document.frmContact.txtComments.value = '';
		}
	}
}

function leaveField(fieldName){
	if(fieldName == 'first_name'){
		document.frmContact.first_name.style.backgroundColor = '#FFF';
		document.frmContact.first_name.style.color = '#999';
		if(document.frmContact.first_name.value == ''){
			document.frmContact.first_name.value = 'First Name';
			}
	} 
	if(fieldName == 'last_name') {
		document.frmContact.last_name.style.backgroundColor = '#FFF';
		document.frmContact.last_name.style.color = '#999';
		if(document.frmContact.last_name.value == ''){
			document.frmContact.last_name.value = 'Last Name';
			}
	}
	if(fieldName =='organization_name') {
		document.frmContact.organization_name.style.backgroundColor = '#FFF';
		document.frmContact.organization_name.style.color = '#999';
		if(document.frmContact.organization_name.value == ''){
			document.frmContact.organization_name.value = 'Company';
			}
	}
	if(fieldName =='e_mail') {
		document.frmContact.e_mail.style.backgroundColor = '#FFF';
		document.frmContact.e_mail.style.color = '#999';
		if(document.frmContact.e_mail.value == ''){
			document.frmContact.e_mail.value = 'E-mail Address';
			}
	}
	if(fieldName =='telephone') {
		document.frmContact.telephone.style.backgroundColor = '#FFF';
		document.frmContact.telephone.style.color = '#999';
		if(document.frmContact.telephone.value == ''){
			document.frmContact.telephone.value = 'Telephone';
			}
	}
	if(fieldName =='txtComments') {
		document.frmContact.txtComments.style.backgroundColor = '#FFF';
		document.frmContact.txtComments.style.color = '#999';
		if(document.frmContact.txtComments.value == ''){
			document.frmContact.txtComments.value = '';
			}
	}
}

function checkForm(){
	var validForm = false;
	
	if(document.frmContact.first_name.value == 'First Name' || document.frmContact.first_name.value == '')
	{
		alert("Please enter your First Name.");
		document.frmContact.first_name.focus();
		return false;
	}
	else if(document.frmContact.last_name.value == 'Last Name' || document.frmContact.last_name.value == '')
	{
		alert("Please enter your Last Name.");
		document.frmContact.last_name.focus();
		return false;
	}
	else if(document.frmContact.organization_name.value == 'Company' || document.frmContact.organization_name.value == '')
	{
		alert("Please enter your Company Name.");
		document.frmContact.organization_name.focus()
		return false;
	}
	else if(document.frmContact.e_mail.value == 'E-mail Address' || document.frmContact.e_mail.value == '')
	{
		alert("Please enter your E-mail Address.");
		document.frmContact.e_mail.focus()
		return false;
	} 
	else if(document.frmContact.telephone.value == 'Telephone' || document.frmContact.telephone.value == '')
	{
		alert("Please enter your Telephone Number.");
		document.frmContact.telephone.focus()
		return false;
	}
	else {
		validForm = true;
	}
	
	if(validForm)
	{
		document.frmContact.action = 'index.cfm'
		document.frmContact.submit();
	} else {
		return false;
	}
}