// JavaScript Document

function ajax(url,method,data,datatype,containerId)
{
	var ajaxeventallow = true;
	//alert(ajaxeventallow)
	if(isNaN("ajaxeventallow")){
		var ajaxeventallow=false;
	}
	ajaxeventallow = false;	
	$.ajax({
		type: method,
		url: url,
		data: data,
		dataType: datatype,
		crossDomain: true,
		cache: false,
		success: function(response){
			$('#'+containerId).html(response);
		},
		error:function (xhr, ajaxOptions, thrownError){
			alert("Hata:" + xhr.status);
			//alert(thrownError);
		}, 
	});	
		return false;
};


