// global visibility var

var form_visibility = 0;

function formVisibility(the_prefix,which)
{
	document.getElementById(the_prefix + '_update').style.display = (which == 1)? 'none':'block'; //update button
	document.getElementById(the_prefix + '_table').style.display = (which == 1)? 'none':'block'; //regular table
	document.getElementById(the_prefix + '_cancel').style.display = (which == 1)? 'block':'none'; //cancel button
	document.getElementById(the_prefix + '_table_update').style.display = (which == 1)? 'block':'none'; //form table
}
