function bookmarksite(title, url){
if (document.all)
	window.external.AddFavorite(url, title);
else if (window.sidebar)
	window.sidebar.addPanel(title, url, "")
}

// menu script //

/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

// Bands
var menu1=new Array()
menu1[0]='<a href="http://'+window.location.hostname+'/persoonlijke_promotie/plus_kook_programma/">Plus Kook Programma TVL</a>'
menu1[1]='<a href="http://'+window.location.hostname+'/persoonlijke_promotie/plus_kookprogramma_omroep_brabant/">Plus Kook Programma OB</a>'

// Inlichtingen
var menu2=new Array()
menu2[0]='<a href="http://'+window.location.hostname+'/persoonlijke_promotie/plus_kook_programma/">Plus Kook Programma TVL</a>'
menu2[1]='<a href="http://'+window.location.hostname+'/persoonlijke_promotie/plus_kookprogramma_omroep_brabant/">Plus Kook Programma OB</a>'

var menuwidth='148px' //default menu width
var menubgcolor='' //menu bgcolor
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function doSubmitForm(inp) {
	
	var form = document.getElementById(inp);
	var sError = "";
	var strFocus = "";
	
	//make sure the can only be pressed once...
	if(document.getElementById('sbm')){document.getElementById('sbm').disabled = true};	
	
	if(inp == "form_contact") {	
		//var c_initialen		= document.getElementById('c_initialen').value;
		var c_name			= document.getElementById('c_name').value;
		var c_company			= document.getElementById('c_company').value;
		//var c_titel			= document.getElementById('c_titel').checked;
		var c_adress		= document.getElementById('c_adress').value;
		//var c_adressnr		= document.getElementById('c_adressnr').value;
		var c_zipc			= document.getElementById('c_zipc').value;
		//var c_zipl			= document.getElementById('c_zipl').value;
		var c_city			= document.getElementById('c_city').value;
		var c_email			= document.getElementById('c_email').value;
		//var c_country		= document.getElementById('c_country').value;
		var c_tel		= document.getElementById('c_tel').value;
var c_subject		= document.getElementById('c_subject').value;
var c_opm		= document.getElementById('c_opm').value;
	
		//if(c_geslacht == ""){sError = sError + "- U hebt geen geslacht gekozen\n"; if(strFocus == ""){ strFocus = "gM"; }}
		if(c_name == ""){sError = sError + "- U hebt geen naam ingevuld\n"; if(strFocus == ""){ strFocus = "c_name"; }}
		if(c_company == ""){sError = sError + "- U hebt geen bedrijfsnaam ingevuld\n"; if(strFocus == ""){ strFocus = "c_company"; }}
		//if(c_titel == ""){sError = sError + "- U hebt geen titelatuur gekozen\n"; if(strFocus == ""){ strFocus = "c_titel_0"; }}
		if(c_adress == ""){sError = sError + "- U hebt geen adres ingevuld\n"; if(strFocus == ""){ strFocus = "c_adress"; }}
		if(c_subject == ""){sError = sError + "- U hebt geen onderwerp ingevuld\n"; if(strFocus == ""){ strFocus = "c_subject"; }}
		if(c_zipc == ""){sError = sError + "- U hebt geen juiste postcode ingevuld\n"; if(strFocus == ""){ strFocus = "c_zipc"; }}
		if(c_city == ""){sError = sError + "- U hebt geen woonplaats ingevuld\n"; if(strFocus == ""){ strFocus = "c_city"; }}
		if(c_tel == ""){sError = sError + "- U hebt geen e-mailadres ingevuld\n"; if(strFocus == ""){ strFocus = "c_tel"; }}
		if(c_email == ""){sError = sError + "- U hebt geen emailadres ingevuld\n"; if(strFocus == ""){ strFocus = "c_email"; }}
if(c_opm == ""){sError = sError + "- U hebt geen opmerking ingevuld\n"; if(strFocus == ""){ strFocus = "c_opm"; }}
	}
	
	if (sError != "")
	{
		alert('De volgende gegevens ontbreken of zijn onvolledig.\n\n'+sError+'');
		if(document.getElementById('sbm')){document.getElementById('sbm').disabled = false};
		if(strFocus != "")
		{
		eval("document.forms."+inp+"."+strFocus+".focus();");
		}
	}
	else
	{
		form.action = "process.asp";
		form.target = "iSubmit";
		form.submit();
	}
	if(inp == "form_contact_en") {	
		//var c_initialen		= document.getElementById('c_initialen').value;
		var c_name			= document.getElementById('c_name').value;
		var c_company			= document.getElementById('c_company').value;
		//var c_titel			= document.getElementById('c_titel').checked;
		var c_adress		= document.getElementById('c_adress').value;
		//var c_adressnr		= document.getElementById('c_adressnr').value;
		var c_zipc			= document.getElementById('c_zipc').value;
		//var c_zipl			= document.getElementById('c_zipl').value;
		var c_city			= document.getElementById('c_city').value;
		var c_email			= document.getElementById('c_email').value;
		//var c_country		= document.getElementById('c_country').value;
		var c_tel		= document.getElementById('c_tel').value;
var c_subject		= document.getElementById('c_subject').value;
var c_opm		= document.getElementById('c_opm').value;
	
		//if(c_geslacht == ""){sError = sError + "- U hebt geen geslacht gekozen\n"; if(strFocus == ""){ strFocus = "gM"; }}
		if(c_name == ""){sError = sError + "- You did not fill out your name\n"; if(strFocus == ""){ strFocus = "c_name"; }}
		if(c_company == ""){sError = sError + "- You did not fill out your company name\n"; if(strFocus == ""){ strFocus = "c_company"; }}
		//if(c_titel == ""){sError = sError + "- U hebt geen titelatuur gekozen\n"; if(strFocus == ""){ strFocus = "c_titel_0"; }}
		if(c_adress == ""){sError = sError + "- You did not fill out your address\n"; if(strFocus == ""){ strFocus = "c_adress"; }}
		if(c_subject == ""){sError = sError + "- You did not fill out a subject\n"; if(strFocus == ""){ strFocus = "c_subject"; }}
		if(c_zipc == ""){sError = sError + "- You did not fill out your postalcode\n"; if(strFocus == ""){ strFocus = "c_zipc"; }}
		if(c_city == ""){sError = sError + "- You did not fill out your city\n"; if(strFocus == ""){ strFocus = "c_city"; }}
		if(c_tel == ""){sError = sError + "- You did not fill out your phonenumber\n"; if(strFocus == ""){ strFocus = "c_tel"; }}
		if(c_email == ""){sError = sError + "- You did not fill out your e-mail\n"; if(strFocus == ""){ strFocus = "c_email"; }}
if(c_opm == ""){sError = sError + "- You did not fill out a comment\n"; if(strFocus == ""){ strFocus = "c_opm"; }}
	}
	
	if (sError != "")
	{
		alert('The following errors occured.\n\n'+sError+'');
		if(document.getElementById('sbm')){document.getElementById('sbm').disabled = false};
		if(strFocus != "")
		{
		eval("document.forms."+inp+"."+strFocus+".focus();");
		}
	}
	else
	{
		form.action = "process.asp";
		form.target = "iSubmit";
		form.submit();
	}

}
