function th_sort (column)
{
var col = document.getElementById("sort");
var from = document.getElementById("from");
var cc = "_";
if ( (col.value.length > 0) && (col.value.toUpperCase() == column) ) {
	cc = col.value.substr(0,1);
	if (cc > "Z") {
		col.value = column.toUpperCase(); 
		}
	else {
		col.value = column.toLowerCase(); 
		}
	}
else {
	col.value = column;
	}
from.value = 0; 
fobj = document.getElementById("form_ed");
fobj.submit ();
}

// -------------------------------------------------------------------

function go_to (target)
{
var sens = document.getElementById("sens");
var cc   = "";
switch (target) {
	case "frst":	cc = "0";	break;
	case "prev":	cc = "-";	break;
	case "next":	cc = "+";	break;
	case "last":	cc = "Z";	break;
	case "print":	cc = "@";	break;
	}
sens.value = cc;
fobj = document.getElementById("form_ed");
if (cc == "œ") {
/*
	window.open("book_list.php", "Printable List",
	"menubar=yes,resizable=yes,scrollbars=yes,toolbar=yes,status=yes,width=1200,height=800,left=0,top=0");
*/
	window.open("about:blank", "Printable List",
	"menubar=yes,resizable=yes,scrollbars=yes,toolbar=yes,status=yes,width=1200,height=800,left=0,top=0");
	fobj.submit ();
	}
else {
	fobj.submit ();
	}
}
