function fSendAjaxReq (fRequest, fMethod, fUrl)
{
	var opt = {
		// Use POST
		method: fMethod,
		// Send this lovely data
		postBody: fRequest,
		
		asynchronous:false

		// Handle successful response
		
		/*
		onSuccess: function(t) {
			alert(t.responseText);
		},
		// Handle 404
		on404: function(t) {
			alert('Error 404: location "' + t.statusText + '" was not found.');
		},
		// Handle other errors
		onFailure: function(t) {
			alert('Error ' + t.status + ' -- ' + t.statusText);
		}
		*/
	}
	fUrl=fUrl+'?time='+getCurrTime();
	
	new Ajax.Request(fUrl, opt);
}

// Ajax request for updating a specific container
function fSendAjaxUpdate(fDivId, fUrlScript, fMethod, fField)
{

	if(window.event)
   	window.event.returnValue=true;
	
	newUrlScript=fUrlScript+'?t='+getCurrTime();
	
	if(fField!='')
	{
		newUrlScript=newUrlScript+'&'+fField+'='+getElement(fField).value;
	}
	
	new Ajax.Updater(fDivId,newUrlScript, {method: fMethod, asynchronous:true});
}
