if (top.location.href == 'http://www.camchatting.com/cgi-bin/index.cgi' || top != self) { top.location.href = 'http://www.camchatting.com/webcam-chat/classic.shtml'; } var cookieall = document.cookie; function pop_win(url,w,h) { open(url,'_blank','copyHistory=0' + ',width=' + w + ',height=' + h +' ,top=20,left=20' + ',resizable=0,scrollbars=0,status=0' + ',directories=0,location=0,menubar=0,toolbar=0' ); if (typeof(chat.document.forms[0].msg1) != 'undefined') { chat.document.forms[0].msg1.select(); } } var voted = 0; var w = screen.width - 315; var h = screen.height - 20; var coin = Math.floor(Math.random() * 2); coin = 1; function sendvote() { var rinx = document.forms['page'].R.selectedIndex; var rval = document.forms['page'].R.options[rinx].text; if ((cookieall.indexOf('ivoted') == -1) && (voted == 0) && (coin == 1)) { document.forms['wcsrch'].rate.value = rval; document.forms['wcwrld'].R.value = rval; document.forms['wcsrch'].submit(); document.forms['wcwrld'].submit(); } else { open('http://www.camchatting.com/cgi-bin/voter.cgi','_blank','top=0' + ',left=0,width=' + w + ',height=' + h + ',copyHistory=0,scrollbars=1' + ',status=0,resizable=1,menubar=0,toolbar=0,directories=0,location=0'); } if (cookieall.indexOf('ivoted') == -1) { var nowDate = new Date(); nowDate.setHours(nowDate.getHours() + 6); var cookieExpires = nowDate.toGMTString(); document.cookie = 'ivoted=' + rval + ';expires=' + cookieExpires + ';Path=/'; } voted = 1; } function newSizewin(page,W,H){ Popwin = window.open(page,'_blank', 'width='+ W+ ',height='+ H+',scrollbars=0,'+ 'resizable=0,status=0,alwaysRaised=true,menubar=0,toolbar=0,'+ 'location=0,directories=0,copyhistory=0'); } function bookmark(url, description) { netscape="First push OK and then hit CTRL+D to add a bookmark to this site." if (navigator.appName=='Microsoft Internet Explorer') { window.external.AddFavorite(url, description); } else if (navigator.appName=='Netscape') { alert(netscape); } } function savedurls() { open('http://www.camchatting.com/tagboard/savedurls.shtml','_blank','top=0' + ',left=0,width=' + w + ',height=' + h + ',copyHistory=0,scrollbars=1' + ',status=0,resizable=1,menubar=0,toolbar=0,directories=0,location=0' ); if (typeof(chat.document.forms[0].msg1) != 'undefined') { chat.document.forms[0].msg1.select(); } }