// JavaScript Document
/*
function disabletext(e){
return false
}

function reEnable(){
return true
}

//if the browser is IE4+
document.onselectstart=new Function ("return false")

//if the browser is NS6
if (window.sidebar){
document.onmousedown=disabletext
document.onclick=reEnable
}
*/

var omitformtags=["input", "textarea", "select"]

omitformtags=omitformtags.join("|")

function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}

function reEnable(){
return true
}

if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}




function entercode() {
	document.inlogform.inlogcode.value = '';
}

function exitcode() {
	if(document.inlogform.inlogcode.value == '') {
	document.inlogform.inlogcode.value = 'inlogcode';
	}
}

function gologon() {
	if((document.inlogform.inlogcode.value == '')||(document.inlogform.inlogcode.value == 'inlogcode')) {
		alert('Vul a.u.b. een geldige inlogcode in');
	} else {
		//alert('Nu inloggen');
		if(document.inlogform.secondaction.value == '') {
			document.inlogform.action = 'abonnees/rzabboneeinlog5346.php'
		} else {
		document.inlogform.action = 'abonnees/rzabboneeinlog5346.php' + document.inlogform.secondaction.value;
		}
		document.inlogform.submit();
	}
}


function gologoff() {
	location = 'rzabboneeuitlog5346.php'; 
}


function verstuurmail() {

sendValided = 0;

if(document.helpdesksend.Naam.value == "") {
sendValided++;
alert("Vul uw naam in A.U.B.");
}


var punt = false;
var appestaartje = false;

var mailadres = document.helpdesksend.mailadres.value;
var lengte = mailadres.length;

if ((document.helpdesksend.mailadres.value == "")&&(document.helpdesksend.tel.value == "")) {
sendValided++;
alert("Vul een E-mail adres in of een telefoonnummer zodat wij contact met u kunnen opnemen");
}
else {

if(!document.helpdesksend.mailadres.value == "") {
for( var i = 0; i < lengte; i++ ) {
if(mailadres.charAt(i) == "@") {
var appestaartje = true;
}
if(mailadres.charAt(i) == ".") {
var punt = true;
}
}

if((punt == true)&&(appestaartje == true)) {

} 
else{
alert("Er is geen geldig E-mailadres ingevuld");
sendValided++;
}
}
}






if(sendValided == 0) {
document.helpdesksend.actie.value = 'sendmail';
document.helpdesksend.submit();
}
}

function menurollover(deze, tiptext, inout, text_color, bg_color) {
	if(inout == 'in') {
		changeblediv = document.getElementById('tip');
	changeblediv.style.visibility='visible';
	changeblediv.innerHTML = tiptext;
	} else {
		changeblediv = document.getElementById('tip');
	changeblediv.style.visibility='hidden';
	}
	
	deze.style.backgroundColor = bg_color;
	deze.style.color = text_color;	
}


function zoeken() {
	if(document.zoekform.zoekquerie.value == "") {
			alert('Vul een trefwoorden in waarop u wilt zoeken s.v.p.');
	} else {
		document.zoekform.submit();	
	}
}

