﻿$(function () {
    var Name = $('input#txtName').val();
    // Dialog			
    $('#dialog').dialog({
        autoOpen: false,
        width: 300,
        modal: true,
        
    });

    // Dialog Link
    $('#dialog_link').click(function () {
        $('#dialog').dialog('open');
        return false;
    });

    //hover states on the static widgets
//    $('#dialog_link').hover(
//					function () { $(this).addClass('nout'); },
//					function () { $(this).removeClass('nout'); }
//				);

    $("#btnCancel").click(function(){
        $('#txtName').val('');
        $('#txtNumber').val('');
        $('#dialog').dialog("close");
    });
});
