function alert2(title, message, width, height){
	$("div.alert").remove();
	$("<div class='alert'><div class='close'></div><h4>"+title+"</h4><p>"+message+"</p></div>")			
			.css("left", $(window).width()/2 - width/2)
			.css("top", $(window).height()/2 - height/2)
			.appendTo("body");

	if(width)
		$("div.alert").css("width", width+"px");			
		
	if(height)
		$("div.alert").css("height", height+"px");			

}

$(document).ready(function(){
	$("div.alert").live("click", function(){
		$("div.alert").remove();
	});
});
