
var showingdiv=false;
function showinfo(text, delay) {
    if (showingdiv == false) {
        showingdiv=true;
        $("#info_text").html(text);
        options = { distance: 10, direction: 'up', mode: 'show', times: 3}
        $( "#info_div" ).effect( 'bounce', options, 100, function () {
                setTimeout(function() {
                    $( "#info_div" ).effect( 'drop', {direction:'right'}, 100, function (){showingdiv=false;});
                }, 1000);
            }
        );			
    }
    return false;
}



function showAlert(text) {
     
     $('#dialog-are-you-sure').attr("title", "Alert");
    $( '#dialog-are-you-sure' ).html(text);
    
    $( "#dialog-are-you-sure" ).dialog({
        autoOpen: true,
    	modal: true,
        resizable: false,
    	buttons: {
    		Ok: function() {
    			$( this ).dialog( "close" );
    		}
    	}
    });
    
    

}
