// JavaScript Document

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function toggleVisibility(me){
	me = document.getElementById(me);
	me.style.visibility="hidden";
}

function externalLink(theURL)
{
	MM_openBrWindow('../external.html?link='+theURL,'popup','width=500,height=250,toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,left=200,top=200');
}


// for linking from the Home page.

function externalLink2(theURL)
{
	MM_openBrWindow('external.html?link='+theURL,'popup','width=500,height=250,toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,left=200,top=200');
}

function MM_openHealthyFaqWindow(thePageId) { //v2.0
  var templateURL = '/templates/healthy_faq.jsp?page=';
  var theURL = templateURL +''+ thePageId;
  window.open(theURL,'','width=400,height=310,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,top=200,left=218');
}

function MM_openBrWindow2(theURL,width,height,scrollbars,location,statusbar,menubar,resizable,top,left) { //v2.0
  var features = 'width='+width+',height='+height+',scrollbars='+scrollbars+',location='+location+',statusbar='+location+',menubar='+menubar+',resizable='+resizable+',top='+top+',left='+left;
  window.open(theURL,'',features);
}

function MM_openBrWindow3(theURL,width,height,scrollbars) { //v2.0
  var features = 'width='+width+',height='+height+',scrollbars='+scrollbars+',location=0,statusbar=0,menubar=0,resizable=0';
  window.open(theURL,'',features);
}

function MM_openBrWindow4(theURL,width,height,scrollbars,location,statusbar,menubar,resizable,top,left) { //v2.0
  var features = 'width='+width+',height='+height+',scrollbars='+scrollbars+',location='+location+',statusbar='+location+',menubar='+menubar+',resizable='+resizable+',top='+top+',left='+left;
  window.open(theURL,'',features);
}

function printRecette(){
    window.open('recette.html','window','width=800,height=600,top=0,left=0,scrollbars=yes');
    return false;
}
