/* Author: Roel Janssen, Vennip ICT Services and Products. Copyrights apply. Revision 08-06-2002 */
function menu(name){
	for (var i=0;i<parent.topbar.document.images.length;i++)
		parent.topbar.document.images[i].src=parent.topbar.document.images[i].src.replace('1','')
	if (name!='') parent.topbar.document.images[name].src="../graphics/"+name+"1.gif"
	parent.page.document.location=name+".htm"	
	}

function pwCheck1(lng){
	var err=''
	if (document.data.password1.value.length<4) err='Wachtwoord moet minimaal 4 tekens bevatten'
	else return true
	window.alert(err)
	document.data.password1.focus()
	return false
	}

function pwCheck2(lng){
	var err=''
	if (document.data.password1.value!=document.data.password2.value) err='Wachtwoorden zijn niet gelijk'
	else return true
	window.alert(err)
	if (document.data.password2.value=="") document.data.password2.focus()
	else {
		document.data.password1.value=""
		document.data.password2.value=""
		document.data.password1.focus()
		}
	return false
	}

function sendData(lng){
	if (document.data.email.value.length<6) document.data.email.focus()
	else if (document.data.sitename.value.length<1) document.data.sitename.focus()
	else if (document.data.siteurl.value.length<4) document.data.siteurl.focus()
	else if (document.data.agree.checked&&pwCheck1(lng)&&pwCheck2(lng)) document.data.submit()
	}

function delCntr(lng){
	var msg='Weet U zeker dat U de teller wilt opzeggen?\nHierbij gaan alle gegevens verloren.'
	if (document.delform.confirm.checked&&window.confirm(msg)) document.delform.submit()
	}	
	
