//--> Basis variable
var contact = "";

//--> Contact Uitlezen van gekozen naam
function ct_fuitlezen()
{
	//--> Gekozen naam
	var naam	= document.contact.na_id.value;
	naam		= naam.split("-");
	foto		= "aan/" + naam[1];
	email		= naam[2];
	
	//--> Als de naam leeg is
	if(naam == "")
	{
		foto	= "onbekend";
		email	= "-";
	}
	
	//--> Verander foto
	document['na_foto'].src	= "afbeeldingen/leden/overzicht/" + foto + ".jpg";
	
	//--> Verander email adres
	document.contact.na_email.value	= email;
}

//--> Contact start als men in veld na_id staat
function ct_fstart()
{
	contact = setInterval('ct_fuitlezen();', 250);
}

//--> Contact stop als men uit veld na_id gaat
function ct_fstop()
{
	clearInterval(contact);
}
