function postwith (to,p) {
  var myForm = document.createElement("form");
  myForm.method="post" ;
  myForm.action = to ;
  for (var k in p) {
    var myInput = document.createElement("input") ;
    myInput.setAttribute("name", k) ;
    myInput.setAttribute("value", p[k]);
    myForm.appendChild(myInput) ;
  }
  document.body.appendChild(myForm) ;
	myForm.submit() ;
  document.body.removeChild(myForm) ;
}

function switchDisabled (element)
{	item = document.getElementById(element);
	if ( item.disabled == true )
	{	item.disabled = false; }
	else
	{	item.disabled = true; }
}
