// @@@
// @@ Author: Bas van Dorst
// @@ Date: 2006-07-03
// @@ Last change: 2006-07-03
// @@ Version: 1
// @@ Revision: 0
// @@ Copyright: Ecommany B.V.
// @@ Description: Javascript bestand die wordt geladen in de body onload tijdens de pagina
// @@$

// @@*
// @@ Function: setFooter
// @@ Param: 
// @@ Description: De groen-gele balk onderaan de pagina wegzetten, en tevens het logo aan de onderkant wegzetten
function setFooter() {
	var iContentHeight = document.getElementById('content').clientHeight;
	var iMenuRechtsHeight = document.getElementById('menu_rechts').clientHeight;
	var iContainerHeight = document.getElementById('container').clientHeight;
	var iMenuLinksHeight = document.getElementById('menu_links_inhoud').clientHeight;
	var iHbLogoHeight = 490;
	// $$ Mocht het rechter menu groter zijn dan de content, dan die hoogte gebruiken
	// $$+
	if (iMenuRechtsHeight > iContentHeight) {
		iContentHeight = iMenuRechtsHeight;
	}
	if (iMenuLinksHeight+iHbLogoHeight > iContentHeight) {
		iContentHeight = iMenuLinksHeight + iHbLogoHeight;
	}
	// $$ Als de contenthoogte kleiner is dan 590, dan de grootte van 'container,inhoud' groter maken
	// $$+
	if (iContentHeight < 590) {
		document.getElementById('container').style.height = iMenuLinksHeight + 75 + "px";
		document.getElementById('inhoud').style.height = iMenuLinksHeight + 75 + "px";
	} else {
		// $$ Het op de juiste hoogte zetten van 'container,inhoud' en het logo van H&B verschuiven met de onderkant
		// $$+
		if (iContainerHeight < iContentHeight) {
			document.getElementById('container').style.height = iContentHeight + 60 +"px";
			document.getElementById('inhoud').style.height = iContentHeight + 25 +"px";
			document.getElementById('menu_links_logo_hb').style.height = iContentHeight - iMenuLinksHeight -55+"px";
		}
	}
	document.getElementById('menu_links_logo_hb').style.display = 'block';
	document.getElementById('footer').style.display = 'block';
}

function checkFormcontact(theForm) {
	if (theForm.fNaam.value=="") { 
	  alert("U heeft geen naam opgegeven.");
	  theForm.fNaam.focus();
	  return (false);
	 } 
	
	if (theForm.fMail.value=="") { 
	  alert("U heeft geen e-mail adres opgegeven.");
	  theForm.fMail.focus();
	  return (false);
	 } 
	 if (theForm.fOnderwerp.value=="") { 
	  alert("U heeft geen onderwerp opgegeven.");
	  theForm.fOnderwerp.focus();
	  return (false);
	 } 
	
	if (theForm.fBericht.value=="") { 
	  alert("U heeft geen vraag/opmerking opgegeven.");
	  theForm.fBericht.focus();
	  return (false);
	 }   
	 if (theForm.fCaptcha.value=="") { 
	  alert("U dient nog een code op te geven zoals die staat aangegeven.");
	  theForm.fCaptcha.focus();
	  return (false);
	 }   
}

function setIKregio(ikc, vol,status) {
	if (status == 'on') {
	
		suffix = (ikc != 'Belgie') ? suffix = 'Integraal Kankercentrum ' : '<br />';
		
		document.getElementById('naam_ikc').innerHTML = suffix + vol;
		document.getElementById('pic').src = '/images/imagemap/' + ikc + '.gif';
	} else {
		document.getElementById('naam_ikc').innerHTML = '';
		document.getElementById('pic').src = '/images/imagemap/trans.gif';
	}
}

function delUserPass(){
	document.getElementById('fUsername').value ='';
	document.getElementById('fPassword').value ='';
}