// JavaScript Document	
//<script language="JavaScript" type="text/JavaScript">
var popWin="width=510,height=480,resizable=1,scrollbars=1";

function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//</script>

function trim(inputString) 
{
	var returnString = inputString;
	var removeChar = " ";
	
	if (removeChar.length)
	{
	  while(''+returnString.charAt(0)==removeChar)
		{
		  returnString=returnString.substring(1,returnString.length);
		}
		while(''+returnString.charAt(returnString.length-1)==removeChar)
	  {
		returnString=returnString.substring(0,returnString.length-1);
	  }
	}
	return returnString;
}	
	
function PT (index) {
	window.open('show_print.php?'+index,'click',popWin);
	return false;
}	

function showimage (src,desc) {
window.open("show_img.php?src="+src+"&desc="+desc,1,"resizable=yes,menubar=yes,scrollbars=yes,width=600,height=500");
}	