function toggleboxes(id,current,number) {
	for (i=1;i!=number;i++) {
	  body=document.getElementById(id+i);
	  if (body) {
		  
		  if (body.id == (id+current)) {
			try {
			  body.style.display='table-row';
			  body.style.width = '100%';			  
			} catch(e) {
			  body.style.display = 'block';
			  body.style.width = '100%';
			}
		  }
		  else {
			body.style.display = 'none';
  		    body.style.width = '100%';			
		  }
	  }
	}
}

function toggleMenu(id,number) {
	for (i=1;i!=number;i++) {
	  body=document.getElementById(id+i);
	  if (body) {
		  if (body.style.display == 'none') {
			try {
			  body.style.display='table-row';
			} catch(e) {
			  body.style.display = 'block';
			}
		  }
		  else {
			body.style.display = 'none';
		  }
	  }
	}
}

function confirmExit()
{
  if (needToConfirm)
  return "Please confirm that you wish to leave this page without Saving your data";
}

function targetopener(mylink, closeme, closeonly)
{
  if(! (window.focus && window.opener)) return true;
  window.opener.focus();
  if(!closeonly) window.opener.location.href=mylink.href;
  if(closeme) window.close();
  return false;
}

function ChangeColor(tableRow, highLight)  
{      
  if(highLight)      
  { 
    tableRow.style.backgroundColor = '#eeeeee'; 
  }      
  else      
  { 
    tableRow.style.backgroundColor = ''; 
  }  
}

function DoNav(theUrl)  
{ 
  document.location.href = theUrl; 
}  


