function externalLinks(){if(!document.getElementsByTagName)return;var anchors=document.getElementsByTagName("a");for(var i=0;i<anchors.length;i++){var anchor=anchors[i];if(anchor.getAttribute("href")&&anchor.getAttribute("rel")=="external")
anchor.target="_blank";}}
window.onload=externalLinks;function checkform(form){if(document.getElementById('cf_naam').value==""){alert("Voer uw naam in.");document.getElementById('cf_naam').focus();return false;}
if(document.getElementById('cf_email').value==""){alert("Voer uw e-mail adres in.");document.getElementById('cf_email').focus();return false;}
if(document.getElementById('cf_tekst').value==""){alert("Vul uw vraag of opmerking in..");document.getElementById('cf_tekst').focus();return false;}
return true;}
function getXmlHttpRequestObject(){if(window.XMLHttpRequest){return new XMLHttpRequest();}else if(window.ActiveXObject){return new ActiveXObject("Microsoft.XMLHTTP");}}
var http=getXmlHttpRequestObject();var searchReq=getXmlHttpRequestObject();var tipdiv;function tipeenvriend(){var naam=document.getElementById('tip_naam').value;var naam2=document.getElementById('tip_naam2').value;var email=document.getElementById('tip_email').value;var tip=document.getElementById('tip_tip').value;var boodschap=document.getElementById('tip_boodschap').value;document.getElementById('tipeenvriend').innerHTML='<p><img src="../../img/throbber.gif" alt="wacht" /></p>';searchReq.open('get','../../tipeenvriend.php?naam='+naam+'&naam2='+naam2+'&email='+email+'&tip='+tip+'&boodschap='+boodschap+'&action=send');searchReq.onreadystatechange=handleTipVriend;searchReq.send(null);}
function handleTipVriend(){if(searchReq.readyState==4){var response=searchReq.responseText;document.getElementById('tipeenvriend').innerHTML=response;}}
function tipNogmaals(){document.getElementById('tipeenvriend').innerHTML=tipdiv;}
function setTip(){tipdiv=document.getElementById('tipeenvriend').innerHTML;document.getElementById('tipeenvriend').innerHTML='<p><img src="../../img/mail.jpg" alt="Mail" /> <a href="javascript:tipNogmaals()">Stuur deze pagina door naar een vriend(in)</a></p>';}
