 	var handleSuccess = function(o){
		if(o.responseText != 'undefined'){
			if(typeof(o.argument[0])!='string'){
				for(var i = 0; i<o.argument[0].length; i++){
					document.getElementById(o.argument[0][i]).innerHTML = o.responseText;
					
				}
			
			}
			else if(o.argument[0].length > 0) {
					document.getElementById(o.argument[0]).innerHTML = o.responseText;
				
			}
		}
		
	}
	
	var handleFailure = function(o){
	if(o.responseText !== undefined){
		alert("HTTP status: " + o.status + " \n\n Status code message: " + o.statusText);
	}
}

/*
	field = either a single element id OR an array of element id's
	url = the url (must be on the same domain).
	querystring = the query string (starts with ?).
*/
function ajax_please(field,url,query_string){
var url = url + query_string;
callback =
{
  success:handleSuccess,
  failure:handleFailure,
  argument: [field]
};


YAHOO.util.Connect.asyncRequest('GET', url, callback);
 
}


