// WP JS Functions for general use
function post_to_url(path, params)
{
	var url=path;
	method = "post";  
	var form = document.createElement("form");          
	//move the submit function to another variable         
	//so that it doesn't get over written         
	form._submit_function_ = form.submit;          
	form.setAttribute("method", method);         
	form.setAttribute("action", url);          
	for(var key in params) 
	{             
		var hiddenField = document.createElement("input");             
		hiddenField.setAttribute("type", "hidden");             
		hiddenField.setAttribute("name", key);             
		hiddenField.setAttribute("value", params[key]);              
		form.appendChild(hiddenField);         
	}          
	document.body.appendChild(form);         
	form._submit_function_(); //call the renamed function     
}

