function ajax(params,id)
{window.addEvent('domready', function() {
	// You can skip the following two lines of code. We need them to make sure demos
	// are runnable on MooTools demos web page.
	//if (!window.demo_path) window.demo_path = '';
	//var demo_path = window.demo_path;
	// --
		
	//We can use one Request object many times.
	var req = new Request.HTML({url:'./getNews.php?param='+params+'&id='+id+'', 
		onSuccess: function(html) {
			//Clear the text currently inside the results div.
			$('dynamic_div').set('text', '');
			//Inject the new DOM elements into the results div.
			$('dynamic_div').adopt(html);
		},
		//Our request will most likely succeed, but just in case, we'll add an
		//onFailure method which will let the user know what happened.
		onFailure: function() {
			$('dynamic_div').set('text', 'The request failed.');
		}
	});
	
	req.send();
	//$('enquiry').addEvent('click', function() {
		
	//});


});
}
/*$('start').addEvent('onload', function(e) {
	e = new Event(e).stop();
 
	var url = "localhost/nikhil/gulgatehairfixing/getNews.php";
 
	/**
	 * The simple way for an Ajax request, use onRequest/onComplete/onFailure
	 * to do add your own Ajax depended code.
	 
	new Ajax(url, {
		method: 'get',
		update: $('dynamic_div')
	}).request();
});*/



