var onCallback = {
success : function(res){
alert("-----");
},
failure :function(){alert("Date Error!");}
};
var formObject = document.getElementById('repository-form');
YAHOO.util.Connect.setForm(formObject);
var cObj = YAHOO.util.Connect.asyncRequest('POST', formObject.action, onCallback);
YUI,的回调函数必须写在前面