<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
function Submit(url, params, target)
{
    document.getElementById("Params").innerHTML = "";
    form = document.getElementById("Frm");
    form.target = target;
    form.action = url;
    if(params)
    {
        pfields = "";
        for(i=0; i < params.length; i += 2)
            pfields += "<input id='f" + i + "' type='hidden' name='" + params[i] + "' value=''>\n";
        document.getElementById("Params").innerHTML = pfields;
        for(i=1; i < params.length; i += 2)
            document.getElementById("f" + (i-1)).value = params[i];
    }
    form.submit();
}
</script>
</head>
<body>
  <form method="post" id="Frm" target="" action="" enctype="application/x-www-form-urlencoded">
     <div id="Params">
     </div>
  </form>
</body>
</html>