function ratecheck() { if (document.forms[0].rate.selectedIndex > 0) return true; return false; } var adwidth = screen.width - 10; var adheight = screen.height * 0.8; var ad; function which_site(the_site) { if (the_site == 1) { ad=open('http://www.camchatting.com/cgi-bin/voter2.cgi?id=christl','adpop2','toolbar=0,menubar=0,scrollbars=1,status=0,resizable=1,width=' + adwidth + ',height=' + adheight + ',top=0,left=0,location=0,copyHistory=0,directories=0'); } else if (the_site == 2) { ad=open('http://www.camchatting.org/cgi-bin/friendplay.cgi','adpop','toolbar=1,menubar=1,scrollbars=1,status=0,resizable=1,width=' + adwidth + ',height=' + adheight + ',top=0,left=0,location=1,copyHistory=1,directories=0'); } else if (the_site == 3) { ad=open('http://www.dreammates.com/index.cfm?aid=451863','adpop','toolbar=1,menubar=1,scrollbars=1,status=0,resizable=1,width=' + adwidth + ',height=' + adheight + ',top=0,left=0,location=1,copyHistory=1,directories=0'); } else if (the_site == 4) { ad=open('http://www.camchatting.com/cgi-bin/voter2.cgi?id=hans','adpop2','toolbar=0,menubar=0,scrollbars=1,status=0,resizable=1,width=' + adwidth + ',height=' + adheight + ',top=0,left=0,location=0,copyHistory=0,directories=0'); } else if (the_site == 5) { ad=open('http://alt.com/go/p8894c','adpop3','toolbar=1,menubar=1,scrollbars=1,status=0,resizable=1,width=' + adwidth + ',height=' + adheight + ',top=0,left=0,location=1,copyHistory=1,directories=0'); } else if (the_site == 6) { ad=open('http://adultfriendfinder.com/go/p44807c','adpop3','toolbar=1,menubar=1,scrollbars=1,status=0,resizable=1,width=' + adwidth + ',height=' + adheight + ',top=0,left=0,location=1,copyHistory=1,directories=0'); } else if (the_site == 7) { ad=open('http://www.camchatting.org/ads/ggc.html','adpop2','toolbar=0,menubar=0,scrollbars=0,status=0,resizable=0,width=210,height=170,top=320,left=240,location=0,copyHistory=0,directories=0'); } else if (the_site == 8) { ad=open('http://www.camchatting.com/cgi-bin/voter.cgi','adpop2','toolbar=0,menubar=0,scrollbars=1,status=0,resizable=1,width=' + adwidth + ',height=' + adheight + ',top=0,left=0,location=0,copyHistory=0,directories=0'); } else if (the_site == 9) { ad=open('http://www.lavalife.com/wp.epl?a=AS008083','adpop','toolbar=1,menubar=1,scrollbars=1,status=1,resizable=1,width=' + adwidth + ',height=' + adheight + ',top=0,left=0,location=1,copyHistory=1,directories=0'); } else if (the_site == 10) { ad=open('http://www.camchatting.org/ads/wildvoyeur.html','adpop2','toolbar=0,menubar=0,scrollbars=0,status=0,resizable=0,width=268,height=201,top=320,left=240'); } else if (the_site == 11) { ad=open('http://www.camchatting.org/ads/alt.html','adpop3','toolbar=1,menubar=1,scrollbars=1,status=0,resizable=1,width=' + adwidth + ',height=' + adheight + ',top=0,left=0,location=1,copyHistory=1,directories=0'); } else if (the_site == 12) { ad=open('http://www.camchatting.org/ads/aff.html','adpop3','toolbar=1,menubar=1,scrollbars=1,status=0,resizable=1,width=' + adwidth + ',height=' + adheight + ',top=0,left=0,location=1,copyHistory=1,directories=0'); } else if (the_site == 13) { ad=open('http://www.camchatting.org/ads/ifa.html','adpop3','toolbar=1,menubar=1,scrollbars=1,status=0,resizable=1,width=' + adwidth + ',height=' + adheight + ',top=0,left=0,location=1,copyHistory=1,directories=0'); } } function openit() { var cookieall = document.cookie; var nowDate = new Date(); nowDate.setHours(nowDate.getHours() + 240); var cookieExpires = nowDate.toGMTString(); var ckpos = cookieall.indexOf("dmpopup"); var cval; if (ckpos == -1) { cval = 1; } else { cval = cookieall.substring(ckpos + 8,ckpos + 9); ++cval; } var coin = Math.floor(Math.random() * 2); if (cval == 1) { if (coin == 1) { which_site(3); } else { which_site(9); } ad.blur(); } else if (cval == 3) { coin = Math.floor(Math.random() * 2); var coin2 = Math.floor(Math.random() * 2) * 6; coin2 = 6; if (coin == 1) { which_site(5 + coin2); } else { which_site(6 + coin2); } ad.blur(); } else if (cval == 6) { which_site(13); ad.blur(); } if (cval < 7) { document.cookie = 'dmpopup=' + cval + ';expires=' + cookieExpires + ';Path=/'; } } function saveVote2() { if (1 == 1) { setTimeout("openit()",8000); } }