function confirm_it( what )
{
var agree=confirm( "Are you sure you want to" + what + "?" );
if ( agree )
	return true ;
else
	return false ;
}

function confirm_link( url, what )
{
var agree=confirm( "Are you sure you want to" + what + "?" );
if (agree)
	{
	window.location = url;
	return true;
	}
else
	return false;
}

function UpdateCell( row, column, new_content )
	{
	var x=document.getElementById('updateable_table').rows[row-1].cells;
	x[column-1].innerHTML=new_content;
	}


/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Ultimater, Mr J :: http://www.webdeveloper.com/forum/showthread.php?t=77389 */

function toggleMe(button,text){
  var e=document.getElementById(button);
  var t=document.getElementById(text);
  if(!e)return true;
  if(e.style.display=="none"){
    e.style.display="inline"
  } else {
    e.style.display="none"
  }
  if(!t)return true;
  if(t.style.display=="none"){
    t.style.display="inline"
  } else {
    t.style.display="none"
  }
  return true;
}