// Server_Name nom del servidor document.all('Server_Name').value // BdName nom base de dades document.all('BdName').value // ViewName nom vista actual   document.all('ViewName').value function canviaimatge(){      for (i=0;i<document.images.length ;i++)  {       if(document.images[i].src.indexOf('expand.gif')!=-1)         {             document.images[i].src='/' + document.all('BdName').value + '/collapse.gif?openimageresource'          }    }}function ExpandView( docnum ){	var url = '';	var imgobj = document.all('img' + docnum );   	if (imgobj.src == 'http://'+document.all('Server_Name').value+'/'+document.all('BdName').value+'/expand.gif')                {	    url=document.all('ViewName').value + '?OpenView&Expand='+docnum;                 }	else	{	  url=document.all('ViewName').value + '?OpenView&Collapse='+docnum;	}	window.location = url;}