/* Copyright (c) 2008 Interactivate, Inc. All Rights Reserved. */
    // changes the field class to error 
    function showErrorCss( FieldName )
    {
        document.getElementById(FieldName).className = 'error';
    }
    
	
	// used to turn a field on for display 
    function displayField( FieldId, displayFlag )
	{
        if (displayFlag == 1)
        {
            document.getElementById(FieldId).style.display = 'block'
        } else {
            document.getElementById(FieldId).style.display = 'none'
        }
    }
	
	// if you cant figure it out, please pack up your stuff and leave!! ;)~
	function redirect(url)
	{
		window.location = url;
		return true;
	}	

	// up to you to go through and edit. 
	function clearDefaultFields(form)
	{	
		form.EmailAddress.value = (form.Salutation.value == 'Email')? '' : form.Email.value;
		form.FirstName.value = (form.FirstName.value == 'First Name')? '' : form.FirstName.value;
	}		
	
	function valTest( fld, val ) 
	{
		fld.value=(fld.value==val?"":fld.value==""?val:fld.value)
	}	
	
