$.ajax({
url : APPROOT+"/register/getUserTypeDetail?userType="+userType,
type : "post",
dataType : "json",
data : {
param1 : value1
}
if(result.status=='SUCCESS') {
location.href=APPROOT+'/login3';
} else {
$('#errormessage').text(getMessageByKey(result.message)).show();
}
}
})