function remove(field)
{
 for(i=0;i<(field.value.length+1);i++)
  {
   if((field.value.charAt(i))=="'")
    {
    field.value=(field.value.substring(0,i)+"`"+field.value.substring(i+1,field.value.length));
    }
    
    if((field.value.charAt(i))=="&")
    {
    field.value=(field.value.substring(0,i)+" and "+field.value.substring(i+1,field.value.length));
    }
    
    
    
    if((field.value.charAt(i))=="#")
    {
    field.value=(field.value.substring(0,i)+field.value.substring(i+1,field.value.length));
    }
    
    
   if((field.value.charAt(i))=='"')
    {
    field.value=(field.value.substring(0,i)+field.value.substring(i+1,field.value.length));
    }
    
    }
  
  }


function roll(imgName,imgSrc)
{
document[imgName].src=imgSrc;
}

function copyright()
{
now=new Date();
jaar=now.getFullYear();

document.write("Copyright &#169; 2000 - "+jaar+", TypicalEnglish.com&#174;. - Alle rechten voorbehouden <!--- <a href='content/voorwaarden.html'>Algemene voorwaarden</a>-->");
}


function copyright_en()
{
now=new Date();
jaar=now.getFullYear();

document.write("Copyright &#169; 2000 - "+jaar+", TypicalEnglish.com&#174;. - All rights reserved <!--- <a href='content/voorwaarden_en.html'>Terms of trade</a>-->");
}



	
	
	function rightClick(lang)
	{
	if (lang=="en")
	{
	var temp=window.confirm("© copyright David Nicholas\nDo you want to receive more information or an image?");
	}else{
		var temp=window.confirm("© copyright David Nicholas\nWilt u meer informatie of een plaatje ontvangen?");
	}
	contactLoc="contact_"+lang+".php#form";
	if(temp==true){ location.href=contactLoc;}


	}
	
	





function planRoute(){
  var redirUrl = "http://anwb.tms.tensingsks.com/tms/scripts/tgigw.dll?app=tms&cmd=route&output=html&rmode=fast&";
  var url = "http://anwb.tms.tensingsks.com/tms/scripts/tgigw.dll?app=resolve&cmd=resolve2&action=1&config=anwb&redirurl=" + escape(redirUrl);
  if (document.frmRoute.pc1.value!=''){
    url += "&seltype1=1&pc1=" + document.frmRoute.pc1.value;
  }
  else if (document.frmRoute.plaats1.value!=''){
    url += "&seltype1=2&plaats1=" + document.frmRoute.plaats1.value + "&straat1=" + document.frmRoute.straat1.value;
  }  
  else {
    alert("Vul een postcode of plaatsnaam/straatnaam in");
    return;
  }
  if (document.frmRoute.pc2.value!=''){
    url += "&seltype2=1&pc2=" + document.frmRoute.pc2.value;
  }
  else if (document.frmRoute.plaats2.value!=''){
    url += "&seltype2=2&plaats2=" + document.frmRoute.plaats2.value + "&straat2=" + document.frmRoute.straat2.value;
  }  
  else {
    alert("Vul een postcode of plaatsnaam/straatnaam in");
    return;
  }
  document.write(url);
}

function commitFlashObject(_obj, _container)
{
	_output=""
	_paramoutput=""
	_src=""
	_ver=""
	for(_cO in _obj)
	{
		_output+=_cO+"=\""+_obj[_cO]+"\" "
		_paramoutput+="<param name="+_cO+" value=\""+_obj[_cO]+"\">";
		if(_cO=="movie")_src="src=\""+_obj[_cO]+"\"";
		if(_cO=="version")_ver=_obj[_cO];
	}
	
	if(_ver=="")_ver="8,0,0,0"
	ihtm="<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+_ver+" "+_output+">\n"
	ihtm+=_paramoutput+"\n"
	ihtm+="<embed "+_src+" pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash "+_output+">\n";
	ihtm+="</embed>\n";
	ihtm+="</object>\n";
	document.getElementById(_container).innerHTML=ihtm	


	
	}
		
		
		
		
	
	


