//open window to send message function zend(id){ if( top.canal ){ //if(parseInt(id)>=0){ //id numeric // top.status=top.clicszend+" send: "+id+","+id; //}else{ top.status=top.clicszend+" send: "+id; //} var item="ZEND_CAN"; var str=""+top.content.document.location; if( str.indexOf("zzones")!=-1 ){ item="ZEND_POP"; } if( str.indexOf("zonline")!=-1 ){ item="ZEND_ON"; } if( str.indexOf("zdays")!=-1 ){ item="ZEND_DIA"; } if( str.indexOf("zgenome")!=-1 ){ item="ZEND_TRE"; } //top.invisible.document.location="../zdata/settrack.php?item="+item; //alert(item); top.clicszend++; }else{ if( getCookie("z_id")!=null){ //si esta registrat explicar que faci servir canal z.. if(parseId(id)!=-1) usezchannel(id); }else{ //si no esta registrat dialeg de baixar la mosca.. if( parseId(id)!=-1 ) usezchannel(id); // download(); } } } function zendzone(zone){ //alert(zone); top.msg.document.location="../zcanal/zendzone.php?zone="+zone; } function usezchannel(id){ //var w=open("../zpopups/usezchannel.htm","usezchannel","WIDTH=150,HEIGHT=140"); //var w=open("../zpopups/info.php?id="+parseId(id),"info","WIDTH=250,HEIGHT=160"); //w.focus(); //top.bottomFrame.menu2.startBlink(); top.bottomFrame.menu2.document.location="http://www.zexe.net/Z/zhome/menu2b.php"; } function parseId(str){ id=parseInt(str.substring(0,str.indexOf(","))); return( id); } function download(){ //detectar si es mac etc.. if (navigator.appVersion.indexOf('Mac') != -1){ alert("Sorry, only Windows version available, stay tunned for a Mac version..."); return; } top.document.location="../z/z.exe"; //sLista=new Array("../z/z.exe","http://www.iua.upf.es/~abad/z/z.exe"); //ran=60/sLista.length; //currentDate=new Date(); //core=currentDate.getSeconds(); //serv=Math.floor(core/ran); //s=sLista[serv]; //top.document.location=s; //no--->var w=open("../zdownload/download.htm","download","WIDTH=200,HEIGHT=200"); } function openAlias(){ var w=open("../zcanal/alias.php","alias","WIDTH=180,HEIGHT=140"); } var bikky = document.cookie; function getCookie(name) { // use: getCookie("name"); var index = bikky.indexOf(name + "="); if (index == -1) return null; index = bikky.indexOf("=", index) + 1; var endstr = bikky.indexOf(";", index); if (endstr == -1) endstr = bikky.length; return unescape(bikky.substring(index, endstr)); } var today = new Date(); var expiry = new Date(today.getTime() + 28 * 24 * 60 * 60 * 1000); // plus 28 days function setCookie(name, value) { // use: setCookie("name", value); if (value != null && value != "") document.cookie=name + "=" + escape(value) + "; expires=" + expiry.toGMTString(); bikky= document.cookie; // update bikky } /* //Disable right mouse click Script //By Maximus (maximus@nsimail.com) //For full source code, visit http://www.dynamicdrive.com var message="Function Disabled!"; /////////////////////////////////// function clickIE() {if (document.all) {alert(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) {alert(message);return false;}}} if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} document.oncontextmenu=new Function("return false") */