// JavaScript Document
function Post() {
	form=document.createElement("form");
	form.setAttribute("action","<?=$_SERVER['PHP_SELF']?>");
	form.setAttribute("method","post");

	for (var i=0; i<arguments.length; i+=2) {
		switch (arguments[i]) {
		case "action":
			form.setAttribute("action",arguments[i+1]);
			break;
		case "method":
			form.setAttribute("method",arguments[i+1]);
			break;
		default:
			input=document.createElement("input");
			input.setAttribute("type","hidden");
			input.setAttribute("name",arguments[i]);
			input.setAttribute("value",arguments[i+1]);
			form.appendChild(input);
		}
	}
	document.body.appendChild(form);
	form.submit();
}
