
	function show(lyr){
		layer = new Array()
		layer[0] = 'projects'; 		layer[1] = 'agents'; 
		
		for(i=0; i<layer.length; i++){
			document.getElementById(layer[i]).style.display = 'none';
		}
		
		document.getElementById(lyr).style.display = '';
	}
	
	function hide(lyr){
		lyr.style.display='none';		
	}
	
	function confirmdel(str){
		return confirm('\nDo you really want to delete '+str+'?');
	}
	
	function submitFrm(frm){
		frm.submit();
	}
	
	function SelectOption(OptionListName, ListVal)	
	{
		
		for (i=0; i < OptionListName.length; i++)
		{
			if (OptionListName.options[i].value == ListVal)
			{
				OptionListName.selectedIndex = i;
				break;
			}
		}
	}

	var popUpWin=0;
	function popup(popupurl)
	{
	  if(popUpWin)
	  {
		if(!popUpWin.closed) popUpWin.close();
	  }
	  popUpWin = open(popupurl, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+(screen.width/1.50)+',height='+(screen.height-60)+',left='+0+', top='+0+',screenX='+0+',screenY='+0+'');
	}

	function popup1(popupurl)
	{
	  if(popUpWin)
	  {
		if(!popUpWin.closed) popUpWin.close();
	  }
	  popUpWin = open(popupurl, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+(screen.width-60)+',height='+(screen.height-60)+',left='+0+', top='+0+',screenX='+0+',screenY='+0+'');
	}
