// altijd frameset tonen
// if (top == self) self.location.href = "index.html";

//////////////////////////////////////////////////////////////////////
//Disable right click - with message
//////////////////////////////////////////////////////////////////////

function clickIE4(){
  if (event.button==2){
    showAddFavorites();
    return false;
  }
}

function clickNS4(e){
  if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
      showAddFavorites();
      return false;
    }
  }
}

function showAddFavorites(){
  window.external.AddFavorite("http://www.eamc.be","EAMC Homepage");
}

if (document.layers){
  document.captureEvents(Event.MOUSEDOWN);
  document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
  document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("window.external.AddFavorite('http://www.eamc.be','EAMC Homepage');return false");

function set_m (first, second, subject, text) {
// e-mail: mijnuser@mijndomein.com
//		set_m('mijnuser','mijndomein.com', 'mijn onderwerp','mijntext')
    pre = "mail";
    url = pre + "to:" + first;
	
	mymail = url + "@" + second;
	if(subject == "") subj= "";
	else subj = "?subject=" + subject;
	if(text == "") mytext = first + "@" + second;
	else mytext = text;
    document.write('<a href="' + mymail + subj +'">' + mytext + '</A>');
}