function tglMenu(id) {
	//expand-collapse menu
  if (document.getElementById){
     var temp1=document.getElementById(id).style; 
         if (temp1.display=='none') {
            document.getElementById(id).style.display=""; 
            //document.getElementById(id+"_f").src="uses/open.gif";                 
         } 
         else {
            document.getElementById(id).style.display="none"; 
            //document.getElementById(id+"_f").src="uses/closed.gif"; 
         } 
  } 
} 
function IsNumeric(strString) {
	//  check for valid numeric INTEGER strings	
	var strValidChars = "0123456789";
	var strChar;
	var blnResult = true;
	if (strString.length < 1) 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 openall(id) {
	//expand all elements
	var i;
	var temp;
	for(i=0;i<id.length;i++){
		if (document.getElementById(String(id[i]))){
			temp=document.getElementById(String(id[i])).style; 
				document.getElementById(String(id[i])).style.display=""; 
		}
	}
}
/*
function closeall(id) {
  //collapse all elements
	var i;
	var temp;
	for(i=0;i<id.length;i++){
	  if (document.getElementById){
		temp=document.getElementById(id[i]).style; 
			document.getElementById(id[i]).style.display="none"; 
	  } 
	}
}*/
