function submitForm(url,data)
{
var eleForm=document.body.appendChild(document.createElement('form'));
eleForm.action=url;
for(var property in data)
{
var hiddenInput=document.createElement('input');
hiddenInput.type='hidden';
hiddenInput.name=property;
hiddenInput.value=data[property];
eleForm.appendChild(hiddenInput);
}
this.eleForm=eleForm;
if(!submitForm._initialized)
{
submitForm.prototype.post = function()
{
this.eleForm.method = 'post';
this.eleForm.submit();
};
submitForm._initialized = true;
}
}
new submitForm('userAuthoriedManager!selectRole', {userId:userId.value, pageNo:'<%=pageModel.getNextPageNumber()%>', queryString:document.getElementById("searchById").value, checkedIds:checkedIds}).post();