<!--

function addCrumb(a, divGenId)
{
	var plate=document.getElementById('crumbs');

	if(plate)
	{
		if(a)
		{
			plate.innerHTML='';
			var strt=0;
			var end=0;
			end=a.indexOf('/',end);
			var end2=0;
			while(end2<a.length)
			{	
				if(end<0) end2=a.length;
				else end2=end;
				if(!divGenId)
					if(end2==a.length)
						plate.innerHTML+='/'+'<a target="_blank" onclick="addCrumb(\''+a.substring(0,end2)+'\')" href="'+a.substring(0,end2)+'">'+process_quotes(a.substring(strt,end2))+'</a>';
					else
						plate.innerHTML+='/'+process_quotes(a.substring(strt,end2));
					// this what should be modified to add links to the crumbs
				else
					if(end2==a.length-1)
						plate.innerHTML+='/'+'<a target="_self" onclick="javascript:view(\'div'+divGenId+'\',\'false\')" href="#a'+divGenId+'">'+process_quotes(a.substring(strt,end2))+'</a>';
					else
						plate.innerHTML+='/'+process_quotes(a.substring(strt,end2));
					// this what should be modified to add links to the crumbs

				end++;
				strt=end;
				end=a.indexOf('/',end);
			}
		}
	}
}

//'_' by ' ':confusion with ' '->'%20' when deprocessing
// &amp; is not needed to be processed
function process_quotes(q)
{

	var v=q;
	var oldv='-';

//	var p=/\'/;
//	while(v!=oldv)
//	{
//		oldv=v;
//		v=v.replace(p,'&apos;');
//	}
//	oldv='-';
	var s=/\"/;
	while(v!=oldv)
	{
		oldv=v;
		v=v.replace(s,'&quot;');
	}
	oldv='-';
	s=/%20/;	//could learn to use global [g]
	while(v!=oldv)
	{
		oldv=v;
		v=v.replace(s,' ');
	}
//	s=/_/;
	return v;
//	return ' ';
}


function view (divName, bool) {
   var e = document.getElementById(divName);
   if (e) {
     if (bool) {
       e.style.display = 'block';
     }
     else {
			e.style.display = 'none';
		}
	}
}

function toggleDiv (divName) {
	var e = document.getElementById(divName);
     if(e)
     {
	var f = e.style.display;
	if (f=='block') {
		view(divName,false);
	}
	else { view(divName,true); }
     }
 }
 
 function view_all(bool) {
	for(var k=1;k<=divCount;k++)
	{
		view('div'+k,bool);
		check('checkbox'+k,bool);
	}
}

-->