is there something wrong with doing it this way?
afterSubmit: function(t) { handle_register(t); },
function handle(t)
{
var data = t.responseText.split(“|”);
//Give either the success or error message.
if(data[0] == “0”)
{
alert(data[1]); //testng
}
else
{
alert(data[1]); //testing
}
}