function ajaxRequest (url,target) {

	if (target == null) {

		jQuery.ajax({
			type: "POST",
			url: url,
			context: target,
			success: function(msg){
				//alert( "Data Saved");
			}
		});

	} else {

		jQuery.ajax({
			type: "POST",
			url: url,
			context: target,
			success: function(html){
				jQuery("#" + target).replaceWith(html);
			}
		});
	}

}
