function switchMenu(obj,objImg) {	
	var el = document.getElementById(obj);
	var img = document.getElementById(objImg);
	if ( el.style.display != "none" ) 
	{
		el.style.display = 'none';
		img.src='tree/plus.gif'
	}
	else {		
		CloseAll();
		el.style.display = '';
		img.src='tree/minus.gif'
	}
}

function CloseAll() {
	document.getElementById("div01").style.display = 'none';
	document.getElementById("div02").style.display = 'none';
	document.getElementById("div03").style.display = 'none';
	document.getElementById("div04").style.display = 'none';
	document.getElementById("div05").style.display = 'none'; 
	document.getElementById("div06").style.display = 'none';
	document.getElementById("div07").style.display = 'none';
	document.getElementById("div08").style.display = 'none';
	document.getElementById("div09").style.display = 'none';
	document.getElementById("div10").style.display = 'none'; 
	document.getElementById("div11").style.display = 'none';
	document.getElementById("div12").style.display = 'none';
	document.getElementById("div13").style.display = 'none';
	document.getElementById("div14").style.display = 'none';
	document.getElementById("div15").style.display = 'none';  
		
	document.getElementById('img01').src = 'tree/plus.gif';
	document.getElementById('img02').src = 'tree/plus.gif';
	document.getElementById('img03').src = 'tree/plus.gif';
	document.getElementById('img04').src = 'tree/plus.gif';
	document.getElementById('img05').src = 'tree/plus.gif';
	document.getElementById('img06').src = 'tree/plus.gif';
	document.getElementById('img07').src = 'tree/plus.gif';
	document.getElementById('img08').src = 'tree/plus.gif';
	document.getElementById('img09').src = 'tree/plus.gif';
	document.getElementById('img10').src = 'tree/plus.gif';
	document.getElementById('img11').src = 'tree/plus.gif';
	document.getElementById('img12').src = 'tree/plus.gif';
	document.getElementById('img13').src = 'tree/plus.gif';
	document.getElementById('img14').src = 'tree/plus.gif';
	document.getElementById('img15').src = 'tree/plus.gif';
}

function IsNumeric(strString)   	
   {
	   //  check for valid numeric strings
		var strValidChars = "0123456789-";
		var strChar;
		var blnResult = true;

		if (strString.length == 0) return false;

		//  test strString consists of valid characters listed above
		for (i = 0; i < strString.length && blnResult == true; i++)
		{
			strChar = strString.charAt(i);
			if (strValidChars.indexOf(strChar) == -1)
			{
				blnResult = false;
			}
		}
		return blnResult;
   }
   
   function IsStrictNumeric(strString)   	
   {
	   //  check for valid numeric strings
		var strValidChars = "0123456789";
		var strChar;
		var blnResult = true;

		if (strString.length == 0) return false;

		//  test strString consists of valid characters listed above
		for (i = 0; i < strString.length && blnResult == true; i++)
		{
			strChar = strString.charAt(i);
			if (strValidChars.indexOf(strChar) == -1)
			{
				blnResult = false;
			}
		}
		return blnResult;
   }
   
   

