function checkContactForm(thisForm)
{
    bValidated = true;
    if(!checkName(thisForm))
    {
        bValidated = false;
    }
    if(!checkEmail(thisForm))
    {
        bValidated = false;
    }
    /*
    if(!checkPhone(thisForm))
    {
        bValidated = false;
    }
    */    
    return bValidated;
    
}

function checkName(thisForm)
{
    if((thisForm.name.value == "") || (thisForm.name.value == "Name"))
    {
        document.getElementById("rfvName").style.display = "inline";
        return false;
    }
    else
    {
       document.getElementById("rfvName").style.display = "none";
       return true;
    }
    
}

function checkEmail(thisForm)
{
    if((thisForm.email.value == "") || (thisForm.email.value == "Email"))
    {
        document.getElementById("rfvEmail").style.display = "inline";
        return false;
    }
    else
    {
       document.getElementById("rfvEmail").style.display = "none";
       return true;
    }
    
}

function checkPhone(thisForm)
{
    if((thisForm.phone.value == "") || (thisForm.phone.value == "Phone"))
    {
        document.getElementById("rfvPhone").style.display = "inline";
        return false;
    }
    else
    {
       document.getElementById("rfvPhone").style.display = "none";
       return true;
    }
    
}

function nameFocus()
{
    var thisForm = document.forms.contact;
    if((thisForm.name.value == "Name"))
    {
        thisForm.name.value = "";
        thisForm.name.style.color= "#000000";
    }
}

function nameBlur()
{
    var thisForm = document.forms.contact;
    if((thisForm.name.value == ""))
    {
        thisForm.name.value = "Name";
        thisForm.name.style.color= "#666666";
    }
}

function emailFocus()
{
    var thisForm = document.forms.contact;
    if((thisForm.email.value == "Email"))
    {
        thisForm.email.value = "";
        thisForm.email.style.color= "#000000";
    }
}

function emailBlur()
{
    var thisForm = document.forms.contact;
    if((thisForm.email.value == ""))
    {
        thisForm.email.value = "Email";
        thisForm.email.style.color= "#666666";
    }
}

function phoneFocus()
{
    var thisForm = document.forms.contact;
    if((thisForm.phone.value == "Phone"))
    {
        thisForm.phone.value = "";
        thisForm.phone.style.color= "#000000";
    }
}

function phoneBlur()
{
    var thisForm = document.forms.contact;
    if((thisForm.phone.value == ""))
    {
        thisForm.phone.value = "Phone";
        thisForm.phone.style.color= "#666666";
    }
}
