﻿$(document).ready(function() {
    clearInputs();
});
/* clearInputs function */
function clearInputs() {
    //$('input:text, input:password').each(function(){
    $('input.clear').each(function() {
        this.val = this.value;
        this.onfocus = function() {
            if (this.value == this.val) {
                this.value = '';
                $(this).removeClass('clear');
            }
        }
        this.onblur = function() {
            if (this.value == '') {
                this.value = this.val;
                $(this).addClass('clear');
            }
        }
    });
}
