<!--
window.defaultStatus="Match4me.nl - dating voor hoger opgeleide singles (HBO/WO)";var win=null;function NewWindow(mypage,myname,w,h,pos,infocus){if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center'&&pos!="random")||pos==null){myleft=0;mytop=20}
settings="width="+w+",height="+h+",top="+mytop+",left="+myleft+",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);win.focus();}
var win=null;function NewWindow2(mypage,myname,w,h,pos,infocus){if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center'&&pos!="random")||pos==null){myleft=0;mytop=20}
settings="width="+w+",height="+h+",top="+mytop+",left="+myleft+",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);win.focus();}
var win=null;function NewWindow3(mypage,myname,w,h,pos,infocus){if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center'&&pos!="random")||pos==null){myleft=0;mytop=20}
settings="width="+w+",height="+h+",top="+mytop+",left="+myleft+",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";win=window.open(mypage,myname,settings);win.focus();}
var win=null;function NewWindow4(mypage,myname,w,h,pos,infocus){if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center'&&pos!="random")||pos==null){myleft=0;mytop=20}
settings="width="+w+",height="+h+",top="+mytop+",left="+myleft+",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";win=window.open(mypage,myname,settings);win.focus();}
function MM_displayStatusMsg(msgStr){status=msgStr;document.MM_returnValue=true;}
function MM_popupMsg(msg){alert(msg);}
function combineMenus(frm,menu1,menu2){with(frm){for(var i=0;i<document.menufrm.menu1.length;i++){if(document.menufrm.menu1[i].checked){str=document.menufrm.menu1[i].value;break;}}
for(var i=0;i<document.menufrm.menu2.length;i++){if(document.menufrm.menu2[i].checked){str+=document.menufrm.menu2[i].value;break;}}
url=str;window.location.href=url;}}
function Focus(){document.forms[0].focusme.focus();}
function emailCheck(emailStr){var checkTLD=1;var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;var emailPat=/^(.+)@(.+)$/;var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";var validChars="\[^\\s"+specialChars+"\]";var quotedUser="(\"[^\"]*\")";var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var atom=validChars+'+';var word="("+atom+"|"+quotedUser+")";var userPat=new RegExp("^"+word+"(\\."+word+")*$");var domainPat=new RegExp("^"+atom+"(\\."+atom+")*$");var matchArray=emailStr.match(emailPat);if(matchArray==null){alert("Het e-mail adres is niet juist (controleer @ en .)");return false;}
var user=matchArray[1];var domain=matchArray[2];for(i=0;i<user.length;i++){if(user.charCodeAt(i)>127){alert("De naam voor @ in het email adres bevat ongeldige karakters.");return false;}}
for(i=0;i<domain.length;i++){if(domain.charCodeAt(i)>127){alert("De domeinnaam in het email adres bevat ongeldige karakters.");return false;}}
if(user.match(userPat)==null){alert("De naam voor @ in het email adres is niet correct.");return false;}
var IPArray=domain.match(ipDomainPat);if(IPArray!=null){for(var i=1;i<=4;i++){if(IPArray[i]>255){alert("Het IP adres in het email adres is onjuist!");return false;}}
return true;}
var atomPat=new RegExp("^"+atom+"$");var domArr=domain.split(".");var len=domArr.length;for(i=0;i<len;i++){if(domArr[i].search(atomPat)==-1){alert("De domein naam in het email adres klopt niet.");return false;}}
if(checkTLD&&domArr[domArr.length-1].length!=2&&domArr[domArr.length-1].search(knownDomsPat)==-1){alert("Het email adres moet eindigen op een geldige extensie.");return false;}
if(len<2){alert("Het email adres heeft geen hostname.");return false;}
return true;}
function textCounter(field,countfield,maxlimit){if(field.value.length>maxlimit)
field.value=field.value.substring(0,maxlimit);else
countfield.value=maxlimit-field.value.length;}
function popwin(url){popup=window.open('yourpopup.html','windowName','width=500,height=400');if(!popup.opener)
popup.opener=self;}
function supressError(){return true;}
function load(url){window.onerror=supressError;opener.location.href=url;setTimeout('self.close()',1000);}
var ActivePhoto=1;var ActiveWidth=0;var ActiveHeight=0;function PopUpPhoto(nickName,number,winWidth,winHeight,sessionID,sessionNick){if(number!=ActivePhoto&&number>0)ActivePhoto=number;if(ActiveWidth==0)wWidth=winWidth;else wWidth=ActiveWidth;if(ActiveHeight==0)wHeight=winHeight;else wHeight=ActiveHeight;window.open('/showprofile/showphoto.php?profile='
+nickName
+'&number='
+ActivePhoto
+'&SID='
+sessionID
+'&NN='
+sessionNick,'ProfilePhoto'
+nickName
+'nr'
+ActivePhoto,'dependent=yes,location=no,menubar=no,status=yes,personalbar=no,resizable=yes,directories=no,width='+wWidth+',height='+wHeight);}
function SwitchPhoto(nickName,newImageUrl,newThumbWidth,newThumbHeight,newImageWidth,newImageHeight,number){ActivePhoto=number;thumbImage=GetObjectByID("activephoto");thumbImage.src=newImageUrl;thumbImage.height=newThumbHeight;thumbImage.width=newThumbWidth;ActiveWidth=newImageWidth;ActiveHeight=newImageHeight;}
function GetBrowser(){if(window.opera){if(document.createComment){opVersion=70;}else{opVersion=60;}}else if(document.getElementById){if(document.all){if(document.createComment){ieVersion=60;}else if(document.fireEvent){ieVersion=55;}else{ieVersion=50;}}else{nsVersion=60;}}else if(document.all){ieVersion=40;}else if(document.layers){nsVersion=40;}}
var nsVersion=0;var ieVersion=0;var opVersion=0;GetBrowser();function GetObjectByID(objName,currDocument){var objPointer,layerIndex;if(!currDocument){currDocument=document;}
if((objPointer=objName.indexOf('?'))>0&&parent.frames.length){currDocument=parent.frames[currDocument.substring(objPointer+1)].document;objName=objName.substring(0,objPointer);}
if(ieVersion>0){htmlObj=currDocument.all[objName];}else if(nsVersion>40){htmlObj=currDocument.getElementById(objName)}else{for(layerIndex=0;!htmlObj&&currDocument.layers&&layerIndex<currDocument.layers.length;layerIndex++){htmlObj=currDocument.layers[layerIndex][objName];}}
for(layerIndex=0;!htmlObj&&currDocument.layers&&layerIndex<currDocument.layers.length;layerIndex++){htmlObj=GetObjectByID(objName,currDocument.layers[layerIndex].document);}
return htmlObj;}
function Get_Cookie(name){var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length)))return null;if(start==-1)return null;var end=document.cookie.indexOf(";",len);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(len,end));}
function Set_Cookie2(name,value,days)
{var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();document.cookie=name+"="+value+expires+"; path=/";}
function Delete_Cookie2(name,value,days)
{var date=new Date();date.setTime(date.getTime()-(days*24*60*60*1200));var expires="; expires="+date.toGMTString();document.cookie=name+"="+value+expires+"; path=/";}
function Set_Cookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+
((expires)?";expires="+expires.toGMTString():"")+
((path)?";path="+path:"/")+
((domain)?";domain="+domain:".match4me.nl")+
((secure)?";secure":"");}
function Delete_Cookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+
((expires)?";expires="+dexpires.toGMTString():"")+
((path)?";path="+path:"/")+
((domain)?";domain="+domain:".match4me.nl")+
((secure)?";secure":"");}
var today=new Date();var expires=new Date(today.getTime()+(56*86400000));var dexpires=new Date(today.getTime()-(56*86400000));function set(){if(document.logonForm.savebox.checked)
{Set_Cookie2("username",document.logonForm.tx_pro_nickname.value,"100");}
else
{Delete_Cookie2("username",document.logonForm.tx_pro_nickname.value,"120");}}
function MM_callJS(jsStr){return eval(jsStr)}
function setOpacity(value){document.getElementById("styled_popup").style.opacity=value/10;document.getElementById("styled_popup").style.filter='alpha(opacity='+value*10+')';}
function fadeInMyPopup(){for(var i=0;i<=100;i++)
setTimeout('setOpacity('+(i/10)+')',8*i);}
function fadeOutMyPopup(){for(var i=0;i<=100;i++){setTimeout('setOpacity('+(10-i/10)+')',8*i);}
setTimeout('closeMyPopup()',800);}
function closeMyPopup(){document.getElementById("styled_popup").style.display="none"}
function fireMyPopup(){setOpacity(0);document.getElementById("styled_popup").style.display="block";window.setTimeout("fadeInMyPopup()",1000);window.setTimeout("fadeOutMyPopup()",7000);}
function EvalSound2(soundobj)
{var thissound=document.getElementById(soundobj);thissound.Play();}
function MM_jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if(restore)selObj.selectedIndex=0;}
function ShowPicture(id,Source){if(Source=="1"){if(document.layers)document.layers[''+id+''].visibility="show"
else if(document.all)document.all[''+id+''].style.visibility="visible"
else if(document.getElementById)document.getElementById(''+id+'').style.visibility="visible"}
else
if(Source=="0"){if(document.layers)document.layers[''+id+''].visibility="hide"
else if(document.all)document.all[''+id+''].style.visibility="hidden"
else if(document.getElementById)document.getElementById(''+id+'').style.visibility="hidden"}}
function CheckMe(MyForm)
{if(MyForm.tx_pro_nickname.value=='')
{alert("Je nickname is nog niet ingevuld");return false;}
if(MyForm.tx_pro_password.value=='')
{alert("Je wachtwoord is nog niet ingevuld");return false;}
document.forms[0].js_enabled.value="Y";return(true);}
function get()
{tx_pro_nickname=Get_Cookie("username")
if(tx_pro_nickname!=null)
{document.logonForm.tx_pro_nickname.value=tx_pro_nickname;document.logonForm.savebox.checked=true;document.logonForm.tx_pro_password.focus();}
if(tx_pro_nickname==null)
{document.logonForm.tx_pro_nickname.focus();}}