function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 0 && intSpaceFound == str.length - 1) { str = str.substring(0,str.length - 1); intSpaceFound = str.lastIndexOf(" "); } return str; } function Trim(str) { str = LTrim(str); str = RTrim(str); return str; } function stem(){ document.poll.vote.value = 1; } function anderepolls(){ document.poll.action = "polls.php"; } function submitExh(val){ document.FRMzoek.eerderid.value = val; document.FRMzoek.submit(); } function submitFeedback(mode,toevoegen, startrow){ document.feedback.action = "feedback_action.php"; document.feedback.mode.value = mode; document.feedback.toevoegen.value = toevoegen; document.feedback.startrow.value = startrow; document.feedback.submit(); } function showBericht(){ document.getElementById("bericht").style.display = ""; } // index function MM_showHideLayers() { //v6.0 var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; } obj.visibility=v; } } function show(laag){ MM_showHideLayers(laag,'','show'); document.FRMzoek.show.value = 1; } function hide(laag){ MM_showHideLayers(laag,'','hide'); document.FRMzoek.show.value = 0; } function submitZoek(){ document.FRMzoek.startrow.value = 0; document.FRMzoek.submit(); } function SubmitFormColl(img, index, language, dest){ document.forms[0].img.value = img; document.forms[0].action = dest; document.forms[0].submit(); } function pagergroot(nr){ document.FRMzoek.nr.value = nr; document.FRMzoek.submit(); } function terug(nr){ document.FRMzoek.terug.value = nr; document.FRMzoek.img.value = 0; document.FRMzoek.submit(); } function resVals(){ document.forms[0].img.value = 0; document.forms[0].index.value = 0; document.forms[0].exhibition_id.value = 0; document.forms[0].submit(); } function checkFormNieuwsbrief(meld_naam, meld_email){ //--- check of een naam / email is aangegeven if (document.forms[0].naam.value == ""){ alert(meld_naam); document.forms[0].naam.focus(); return false; } if (document.forms[0].email.value == ""){ alert(meld_email); document.forms[0].email.focus(); return false; }else{ // aparte email check var temp = document.forms[0].email.value; var AtSym = temp.indexOf('@'); var Period = temp.lastIndexOf('.') var Space = temp.indexOf(' ') var Length = temp.length - 1 // Array is from 0 to length-1 if ((AtSym < 1) || // '@' cannot be in first position (Period <= AtSym+2) || // Must be atleast one valid char btwn '@' and '.' (Period == Length ) || // Must be atleast one valid char after '.' (Space != -1)) // No empty spaces permitted { alert(meld_email); document.forms[0].email.focus(); return false; } } }