﻿function js_waterMark_Focus_Email(theControl)
{
    theControl.style.color = "black";
    if(theControl.value == "Email")
    {
        theControl.value = "";
        
    }
}

function js_waterMark_Focus_Password(theControl)
{
    theControl.style.color = "black";
    if(theControl.value == "Password")
    {
        theControl.value = "";
        var newObj = changeInputType(theControl, 'password');
         setTimeout("document.getElementById('" + theControl.id + "').focus()", 10);
    }
}

function js_waterMark_Blur_Email(theControl)
{
    theControl.style.color = "#cccccc";
    if(theControl.value == "")
    {
        theControl.value = "Email";
    }
}

function js_waterMark_Blur_Password(theControl)
{
    theControl.style.color = "#cccccc";
    if(theControl.value == "")
    {    
        theControl.value = "Password";
        var newObj = changeInputType(theControl, 'text');
    }
}