﻿// JScript File
// JScript 文件
function LoadDefaultText(controlID,defauletext)
{
    var control = document.getElementById(controlID);
    control.value = defauletext;
    control.style.color = "Gray";
}
function ClickTextBox(control,defauletext)
{
    if(control.value == defauletext)
    {
        control.value = "";
        control.style.color = "Black";
    }
}
function OnblurTextBox(control,defauletext)
{
    if(control.value == "")
    {
       control.value = defauletext;
       control.style.color = "Gray";
    }
}
function ValidatorTextBox(controlID,defauletext,appearcID)
{
    var control = document.getElementById(controlID);
    var appearc = document.getElementById(appearcID);
    
    if(control.value == "" || control.value == defauletext)
    {
       appearc.style.display = "inline";
       return false;
    }
    else
    {
       appearc.style.display = "none";
       return true;
    }
}

