// JavaScript Document
$.blockUI.defaults = { 
    message:  'Moment prosím...',
    css: {  
        padding:        0, 
        margin:         0, 
        width:          '30%',  
        top:            '40%',  
        left:           '35%',  
        textAlign:      'center',  
        color:          '#000',  
        border:         '3px solid #aaa', 
        backgroundColor:'#fff', 
        cursor:         'wait' 
    }, 
     
    overlayCSS:  {  
        backgroundColor:'#000',  
        opacity:        '0.6'  
    },     
    baseZ: 1000,      
    centerX: true,
    centerY: true, 
    allowBodyStretch: true, 
    constrainTabKey: true, 
    fadeOut:  400, 
    applyPlatformOpacityRules: true 
}; 
	
	$().ajaxStart($.blockUI).ajaxStop($.unblockUI);
	// wait for the DOM to be loaded
	$(document).ready( function() {
		var options = {
			success :showAlert
		};
		// bind 'myForm' and provide a simple callback function 
			$('#unregisterEmail').ajaxForm(options);
		});

	function showAlert(responseText, statusText) {
		alert(responseText);
		return true;
	}
