<!--

	function ShowAlbumImage(img, wh)

	{

		url = 'image.php?id=' + img;

		window.open(url,"mywindow","location=1,status=1,resizable=1,scrollbars=yes,width=800,height=600");

	}



	function OpenNewWindow(TheUrl, WinName, extra)

	{

		window.open(TheUrl, WinName, extra);

	}



	function Trim(str)

       {

       	//trim leding spaces

           while(true)

           {

           	if(str.charAt(0) == ' ')

               	str = str.substr(1);

			else

               break;

           }

           //trim trailing spaces

           while(true)

           {

           	if(str.charAt(str.length-1) == ' ')

               	str = str.substr(0,str.length-1);

               else

               	break;

            }

            return(str);

	}

	

	function popUp()

	{

	    window.open('print.php',"",'width=400,height=500,top=0,left=0');

	}	

	/*

	var message="";

	///////////////////////////////////

	function clickIE() {if (document.all) {(message);return false;}}

	function clickNS(e) {if 

	(document.layers||(document.getElementById&&!document.all)) {

	if (e.which==2||e.which==3) {(message);return false;}}}

	if (document.layers) 

	{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}

	else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

	document.oncontextmenu=new Function("return false")

	*/

// -->

