﻿function WaterMark(defaultText, txt, evt) {
    if (txt.value.length == 0 && evt.type == "blur") {
        txt.className = 'WithWaterMark';
        txt.value = defaultText;
    }
    if (txt.value == defaultText && evt.type == "focus") {
        txt.className = 'WithoutWaterMark';
        txt.value = "";
    }
}

