var expandTag = '';
function toggleSubMenu(thistag)
	{
   		styleObj = document.getElementById(thistag).style;
   		if (styleObj.display == 'none') //open the submenu
   		{
   			if (expandTag != '' && document.getElementById(expandTag)) //already some submenu open
   			{
   				expandStyleObj = document.getElementById(expandTag).style;
   				expandStyleObj.display = 'none';
   			}	
   			styleObj.display = '';
   			expandTag = thistag;
   		}
			else 
			{
				styleObj.display = 'none';
				expandTag = '';
			}
	}
   
	var activelink = '';
	function setlinkcolor(link, url)
	{
		if (activelink != '' && document.getElementById(activelink))
		{
			document.getElementById(activelink).style.color = 'rgb(13,69,132)';
		}
		if (document.getElementById(link))
		{
			document.getElementById(link).style.color = '#ffcc00';
		}
		activelink = link;
		loadPageInContentFrame(url);
	}
	function loadPageInContentFrame(url)
	{
			frames['contentFrame'].location = url;
			return true;
	}
	function nothing() { }
	
	function getFile(pURL) {
   if (window.XMLHttpRequest) { // code for Mozilla, Safari, etc
      xmlhttp=new XMLHttpRequest();
      xmlhttp.onreadystatechange=postFileReady;
      xmlhttp.open("GET", pURL, true);
      xmlhttp.send(null);
      return 
   } else if (window.ActiveXObject) { //IE
      xmlhttp=new ActiveXObject('Microsoft.XMLHTTP');
      if (xmlhttp) {
         xmlhttp.onreadystatechange=postFileReady;
         xmlhttp.open('GET', pURL, true);
         xmlhttp.send();
      }
   }
   
}