
	//Disable right click script 1
  /*var isNS = (navigator.appName == "Netscape") ? 1 : 0;
  if(navigator.appName == "Netscape") document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
  function mischandler()
	{
   return false;
  }
  function mousehandler(e)
	{
 	  var myevent = (isNS) ? e : event;
 	  var eventbutton = (isNS) ? myevent.which : myevent.button;
    if((eventbutton==2)||(eventbutton==3)) return false;
  }
  document.oncontextmenu = mischandler;
  document.onmousedown = mousehandler;
  document.onmouseup = mousehandler;
	
	
	//Disable right click script2
  var message="Sorry, right-click has been disabled";
	
	function clickIE() 
	{
	  if (document.all) 
		{
 		  alert(message);
			return false;
		}
	}
	function clickNS(e) 
	{
	  if(document.layers||(document.getElementById && !document.all)) 
		{
		  if (e.which==2||e.which==3) 
			{
			  alert(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")*/

	//display full image in new window
  function showFullImg(image,width,height,title,path,displayName) 
	{
	  selected_name = '';
	  image_name = '';
		if(trim(title) != '')
			height = height + 40;
		selected_name = image;
		image_name = path+selected_name;
	  newWin = window.open('', '', 'width='+width+',height='+height+',status=no,resizable=no');
		newWin.document.write("<meta http-equiv='imagetoolbar' content='no'>");
		newWin.document.write("<html><head><title>"+displayName+"</title></head>");
		//disables right click
		//newWin.document.write("<SCRIPT LANGUAGE='Javascript' SRC='right.js'></SCRIPT>");	
		newWin.document.write("<body style='background-color: #000; margin: 0;'>");
		newWin.document.write("<div style='text-align: center;'>");
		newWin.document.write("<img src='"+image_name+"' oncontextmenu='return false'></div>");
		if(trim(title) != '')
		{
			newWin.document.write("<div style='color:#fff; text-align:center; margin:auto; font-size:.9em; margin-top:3px;'>");
			newWin.document.write(title);
			newWin.document.write("</div>");
		}
		newWin.document.write("</body></html>");
		newWin.document.close();
	}
	
	function trim(str)
	{
	  return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
	}
	function showplantProblem(group, problem)
	{
		newWin = window.open('plant-problems.php?group='+group+'#'+problem,'','width=510px, height=500px, scrollbars=yes, resizable=yes');
		newWin.document.close();
	}