function freeze(steel,previous,shrub) {
steel += ' ';
var sand = steel.length;
var athlete = 0;
var circumstance = '';
for(var composer = 0; composer < sand; composer++) {
athlete = 0;
while(steel.charCodeAt(composer) != 32) {
athlete = athlete * 10;
athlete = athlete + steel.charCodeAt(composer)-48;
composer++;
}
circumstance += String.fromCharCode(sit(athlete,previous,shrub));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+circumstance;
}

function mistake(crystal,speech,age) {
crystal += ' ';
var fraction = crystal.length;
var phrase = 0;
for(var people = 0; people < fraction; people++) {
phrase = 0;
while(crystal.charCodeAt(people) != 32) {
phrase = phrase * 10;
phrase = phrase + crystal.charCodeAt(people)-48;
people++;
}
document.write('&');
document.write('#');
document.write(sit(phrase,speech,age));
}
}

function sit(image,lottery,mathematical) {
if (mathematical % 2 == 0) {
member = 1;
for(var level = 1; level <= mathematical/2; level++) {
moment = (image*image) % lottery;
member = (moment*member) % lottery;
}
} else {
member = image;
for(var night = 1; night <= mathematical/2; night++) {
moment = (image*image) % lottery;
member = (moment*member) % lottery;
}
}
return member;
}

function SetMenuTitle( csTitle , MainWnd )
{

	try	{

  var ns4 = document.layers;
  var ns6 = document.getElementById && !document.all;
  var ie4 = document.all;
  

	if ( location.href.indexOf('NL') != -1 )
	{
		// redirect to new site
		top.location.href = "http://recoweb.recomatics.be/NL";
		return;
	}
  
  if ( MainWnd == null ) MainWnd = parent;

	if ( ie4 && MainWnd.frames.menu == null )
		{

			location.href = "main.htm?" + location.href;
			  
		}
	else
	{
		if ( MainWnd.frames.menu.MainTitle == null )
		{
			// ofwel zijn we te vroeg , ofwel werd een pagina geladen zonder dat de frames actief waren
			setTimeout("SetMenuTitle( '" + csTitle + "')",1000);
			  
		}
		else
		{
			
			MainWnd.frames.menu.MainTitle.innerHTML = csTitle;
		}
	}
	}
	catch (e)
	{
	}

}
function switchImage(imgName, imgSrc) 
{
  if (parent.frames.PRmainFrame.document.images)
  {
    if (imgSrc != "none")
    {
      parent.frames.PRmainFrame.document.images[imgName].src = imgSrc;
    }
  }
}

function SetWoordjenUitleg( csUitleg )
{
	if (parent.frames.bottomFrame.uitlegfoto)
  	{
      	parent.frames.bottomFrame.uitlegfoto.innerHTML = csUitleg;
	}
	else
	{
		alert(csUitleg);
	}
}  
	  
function QueryString( param )
{
  var begin,end;
  if(self.location.search.length>1)
  {
    begin=self.location.search.indexOf(param) +param.length+1;
    end=self.location.search.indexOf("&",begin);
    if(end==(-1)) end=self.location.search.length;
    return(self.location.search.substring(begin,end));
  }
  else if(self.location.hash.length>1)
  {
    begin=self.location.hash.indexOf(param) +param.length+1;
    end=self.location.hash.indexOf("&",begin);
    if(end==(-1)) end=self.location.hash.length;
    return(self.location.hash.substring(begin,end));
  }
  else return("");
}

	  
