/*--------------Holdlink()---------------*/
function holdlink(id, sub_id1, sub_id2){
	if(id=='home'){
	document.getElementById('inner_header').style.display='none';
	document.getElementById('home_header').style.display='';
	document.getElementById(id).style.display='none';
	} else
	document.getElementById(id).className='current';
}
/*--------------Holdlink()---------------*/

/*--------------------------popup() ----------------------------*/
function popup(path)
{

	var NewWin3;
	NewWin3=window.open(SITE_URL+"page/"+path+"/",'NewWin1','height=600,width=620,top=10,left=150,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
	NewWin3.focus();
}
/*--------------------------consultation() ----------------------------*/

/*------------include function---------------------*/
function include_file(id, url) {
	
  var req = false;
  // For Safari, Firefox, and other non-MS browsers
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    // For Internet Explorer on Windows
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
  if (req) {
    // Synchronous request, wait till we have it all
	req.open('GET', url, false);
    req.send(null);
    element.innerHTML = req.responseText;
  } 
}
/*------------include function---------------------*/

/*Misc*/
function hometext(id){
	if(document.getElementById(id).style.display==''){
		document.getElementById(id).style.display='none';
	}else {
		document.getElementById(id).style.display='';
	}	
}
/*Misc*/