/*------------ change Image -------------*/
function changeImage(id){
		document.getElementById(id).style.background ='#f3f3f3';
		document.getElementById(id).onmouseout=function () {
			document.getElementById(id).style.background ='#ffffff';
		}
	}
/*------------ change Image -------------*/

/*--------------Holdlink()---------------*/
function holdlink(menu_id, submenu_id){
	/*if(submenu_id == 'compliance'){
		document.getElementById(menu_id).className='current';
		document.getElementById(submenu_id).className='currentsub';
		document.getElementById('link4').style.display='';
	} else*/ if(menu_id == 'capabilities'){
		document.getElementById(menu_id).className='current';
		document.getElementById(submenu_id).className='currentsub';
	} else
	document.getElementById(menu_id).className='current';
}
/*--------------Holdlink()---------------*/

/*--------------------------popup() ----------------------------*/
function compliance()
{

	var NewWin3;
	NewWin3=window.open("compliancePolicies.jsp",'NewWin1','height=402,width=380,top=50,left=150,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin3.focus();
}

function shredding()
{

	var NewWin3;
	NewWin3=window.open("shreddingProgram.jsp",'NewWin1','height=273,width=375,top=50,left=150,location=no,status=no,toolbar=no,menubar=no,scrollbars=no,');
	NewWin3.focus();
}

function popup(path)
{

	var NewWin3;
	//NewWin3=window.open(path+'.jsp','NewWin1','height=310,width=372,top=50,left=150,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin3=window.open(path+'.jsp','NewWin1','height=388,width=380,top=50,left=150,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin3.focus();
}

/*--------------------------popup() ----------------------------*/

/*------------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);
    
	if(id=="topHeader") {
		if(typeof(page_name)=="undefined") 
			page_name="";
		element.innerHTML = req.responseText.replace(/\[PAGENAME\]/g,page_name);		
	} else {
		element.innerHTML = req.responseText;	
	}
  } 
}
/*------------include function---------------------*/
