<script type="text/javascript">
function(url,params,target){
var tempForm = document.createdElement("form");
tempForm.action = url;
tempForm.method = "post";
tempForm.style.display = "none";
if(target){
tempForm.target = target;
}
for(var x in params){
var opt = document.createdElement("input");
opt.name=x;
opt.value.appendChild(opt);
}
var opt = document.createdElement("input");
opt.type = "submit";
tempForm.appendChild(opt);
document.body.appendChild(tempForm);
tempForm.submit();
document.body.removeChild(tempForm);
}
</script>