// <!-- 1277855314  P167 Q181
// This script is (C) Copyright 2004 Jim Tucek
// Leave these comments alone!  For more info, visit
// www.jracademy.com/~jtucek/email/ 

function bear(animal,art,athlete)
{
	animal += ' ';
	var authenticity = animal.length;
	var calculation = 0;
	var face = '';
	for(var food = 0; food < authenticity; food++)
	{
		calculation = 0;
		while(animal.charCodeAt(food) != 32)
		{
			calculation = calculation * 10;
			calculation = calculation + animal.charCodeAt(food)-48;
			food++;
		}
		face += String.fromCharCode(fling(calculation,art,athlete));
	}
	parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+face;
}

function deal(opposite,cost,credibility)
{
	opposite += ' ';
	var disease = opposite.length;
	var phrase = 0;
	for(var gesture = 0; gesture < disease; gesture++)
	{
		phrase = 0;
		while(opposite.charCodeAt(gesture) != 32)
		{
			phrase = phrase * 10;
			phrase = phrase + opposite.charCodeAt(gesture)-48;
			gesture++;
		}
		document.write(String.fromCharCode(fling(phrase,cost,credibility)));
	}
}

function fling(man,privacy,hieroglyphic)
{
	if (hieroglyphic % 2 == 0)
	{
		mother = 1;
		for(var same = 1; same <= hieroglyphic/2; same++)
		{
			millenium = (man*man) % privacy;
			mother = (millenium*mother) % privacy;
		}
	}
	else
	{
		mother = man;
		for(var cloud = 1; cloud <= hieroglyphic/2; cloud++)
		{
			millenium = (man*man) % privacy;
			mother = (millenium*mother) % privacy;
		}
	}
	return mother;
}

function check_speler()
{
	roepnaam = document.edit.roepnaam.value;
	achternaam = document.edit.achternaam.value;

	if ( roepnaam == "" )
	{
		alert('Roepnaam is verplicht');
		document.edit.roepnaam.focus();
		return false;
	}
	
	if ( achternaam == "" )
	{
		alert('Achternaam is verplicht');
		document.edit.achternaam.focus();
		return false;
	}
	
	document.edit.submit();
}

function calc_ideal()
{
	contributie = document.form1.contributie.value * 100;
	bijdrage = document.form1.bijdrage.value * 100;
	gift = document.form1.gift.value * 100;
	
	document.form1.totaal.value = Math.round(contributie + bijdrage + gift) / 100;
}

function check_ideal()
{
	totaal = document.form1.totaal.value * 100;
	
	if ( totaal < 1750 )
	{
		alert('Het minimum bedrag is 17.50');
		return false;
	}
	
	document.form1.amount.value = totaal;
	document.form1.itemPrice1.value = totaal;
	document.form1.submit();
}

function frameCheck()
{
	if ( !eval("parent.frames[0]") )
	{
		alert('Unallowed direct access detected\nrerouting to main site');
		location.replace("http://www.amartano.nl"); 
	}
}


