// JavaScript Document
function toggleOn(tableStr)
{
//window.alert( "toggleOn: tableStr = " + tableStr );
tableStrArr = tableStr.split(",");
//window.alert( "toggleOn: tableStrArr.length = " + tableStrArr.length );

	for(i=0;i<tableStrArr.length;i++)
	{
		//window.alert( "toggleOn: i = " + i );
		id = tableStrArr[i];
		//window.alert( "toggleOn: id = " + id );
		
			if (document.all)
			{
				if(document.all[id].style.display == 'none')
				{
					document.all[id].style.display = '';
				}
			
			} 
		   
			else if (document.getElementById)
			{
				if(document.getElementById(id).style.display == 'none')
				{
					document.getElementById(id).style.display = 'block';
				}
				
			} 
	
	}

}

function toggleOff(tableStr)
{

//window.alert( "toggleOn: tableStr = " + tableStr );
tableStrArr = tableStr.split(",");
//window.alert( "toggleOn: tableStrArr.length = " + tableStrArr.length );

	for(i=0;i<tableStrArr.length;i++)
	{
		//window.alert( "toggleOff: i = " + i );
		id = tableStrArr[i];
		//window.alert( "toggleOff: id = " + id );
		
			if (document.all)
			{
				if(document.all[id].style.display == '')
				{
					document.all[id].style.display = 'none';
				}
			

			} 
		   
			else if (document.getElementById)
			{
				if(document.getElementById(id).style.display == 'block')
				{
					document.getElementById(id).style.display = 'none';
				}
				
			} 
	
	}

}

function dis(obj)
{
	for(i=0;i<obj.length;i++)
		if(obj.elements[i].type == "submit" || obj.elements[i].type == "reset")
			obj.elements[i].disabled = true;
}