$(document).ready(function() {	 	
	/*$('input[type=checkbox]').each(function() {
		$(this).wrap(function() {
			return ($(this).is(':checked')) ? '<div class="custom_checkbox selected" />' : '<div class="custom_checkbox" />';
		});
	});
	
	$('.custom_checkbox input[type=checkbox]').click(function () {
		$(this).parent().toggleClass('selected');
	});*/
	    var cssObj = {
      'background-color':'#091A2E',
      width:'225px',
     // height:'175px',
	  color:'#ffffff'
	  }
    //$(this).css(cssObj);

	
	
	$("#user1").change(function(){
      //alert("lalalallalaa"); 
	    $.blockUI({ message: $('#question'), css: cssObj }); 
        //setTimeout($.unblockUI, 2000); 
});

 
        /*$('#test').click(function() { 
            $.blockUI({ message: $('#question'), css: { width: '275px' } }); 
        });*/ 
 
        $('#yes').click(function() { 
        //$('#submitSearch').click(function() { 
            // update the block message 
			//alert("lalalallalaa"); 
            $.blockUI({ message: $('#saving'),css: cssObj });
            setTimeout($.unblockUI, 1000); 			
 
            $.ajax({ 
                url: 'wait.php', 
                cache: false, 
                complete: function() { 
                    // unblock when remote call returns 
                    $.unblockUI(); 
                } 
            }); 
        }); 
         //$('#yes').click(function() { 
        $('#yes1').click(function() { 
            // update the block message 
			//alert("lalalallalaa"); 
            $.blockUI({ message: $('#saving'),css: cssObj });
            setTimeout($.unblockUI, 1000); 			
 
            $.ajax({ 
                url: 'wait.php', 
                cache: false, 
                complete: function() { 
                    // unblock when remote call returns 
                    $.unblockUI(); 
                } 
            }); 
        }); 
 
        /*$('#no').click(function() { 
            $.unblockUI(); 
            return false; 
        }); */
 


});
