var sUrl = "/test/?ajax=1"; 

var handleSuccess = function(o){
	if(o.responseText !== undefined){
		div.innerHTML = o.responseText;
	}
}

var handleFailure = function(o){
	if(o.responseText !== undefined){
		div.innerHTML = ""
	}
}

var callback =
{
  success:handleSuccess,
  failure: handleFailure,
  cache: true
}

function loadDetailOptions(divID)
{
	var s = document.getElementById('option');
	if (s == null)
		return;
	
	var option = s.options[s.selectedIndex].value;	
	
	div = document.getElementById(divID);
	
	sUrl = "/ajax/contact-form/?ajax=1&option=" + option; 
	var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback); 
};
