// JavaScript Document

function check_height(){
	if(document.getElementById('center_part').offsetHeight<=550 && document.getElementById('left_part').offsetHeight<=550){
		document.getElementById('center_part').style.height=550+'px';
		document.getElementById('left_part').style.height=550+'px';
	
	} else {
		P7_equalCols('left_part','center_part','uitlijning_3');
	}
}


function language_notAvailable(language) {
	switch (language) {
		case "english" :
  			alert("This language is not yet available.");
  			break
		case "francais" :
			alert("Cette langue n'est pas encore disponible.");
 			break
		case "deutsch":
  			alert("Diese sprache ist noch nicht vorhanden.");
  		break
	}
}

function sendMailTo(name, company, domain) {
      locationstring = 'mai' + 'lto:' + name + '@' + company + '.' + domain;
      window.location.replace(locationstring);
}

function message(str) {
	alert(str);
}

function ChangeTableRowColor(tableRow, highLight)
  {
      if (highLight)
      {
        tableRow.style.backgroundColor = '#F5F3F3';
		document.body.style.cursor = 'hand';
      }
      else
      {
        tableRow.style.backgroundColor = 'white';
		document.body.style.cursor = 'default';
      }
  }
  
function ChangeTableRowColor_SubMenu(tableRow, highLight)
{
  if (highLight)
  {
	tableRow.style.color = '#3a4592';
	document.body.style.cursor = 'hand';
  }
  else
  {
	tableRow.style.color = '#666666';
	document.body.style.cursor = 'default';
  }
}
  

function OpenProductWindow(path)
{
	window.open(path,null,"height=450,width=600,status=no,toolbar=no,menubar=no,location=no");
}

function OpenMetingenWindow(path, height, width)
{
	window.open(path,"","height=" + height +",width=" + width + ",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes");
}

function OpenIndustrLadersWindow(path)
{
	window.open(path,null,"height=600,width=665,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
}

function GotoPage(url) {
	this.location = url;	
}

function OpenWindow(path, height, width)
{
	window.open(path,"","height=" + height +",width=" + width + ",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes");
}



  
