var CurrentNumOldMsg="0"; var CurrentNumNewMsg="0"; var PopUpSizeNeedResize=false; var IsIE=(document.all)?1:0; var IsNS=(document.layers)?1:0; var PopUpD_Max_W=0; var PopUpD_Max_H=0; function ServerCheckingFrame_CallBack(IFrameObj) { var Tmp=""+eval("this.document."+IFrameObj.name+"_Form.WantPleaseWaitPopUp").value; if (Tmp=="1") { eval(document.getElementById? document.getElementById("ServerCheckingFrame_WaitingLayer"): document.all.ServerCheckingFrame_WaitingLayer).style.visibility="hidden"; eval(document.getElementById? document.getElementById("ServerCheckingFrame_WaitingLayer"): document.all.ServerCheckingFrame_WaitingLayer).innerHTML=""; } Tmp=""+eval("this.document."+IFrameObj.name+"_Form.WantGrayOut").value; if (Tmp=="1") grayOut(false); eval(eval("this.document."+IFrameObj.name+"_Form.Func").value)(IFrameObj); } function ServerCheckingFrame_Exec(ASPName,CallBackFunctionName,FormInputArray,WantGrayOut,WantPleaseWaitPopUp, PleaseWaitPopUp_Width,PleaseWaitPopUp_Height,PleaseWaitPopUp_HTML) { /*Example Parent+++++++++++++++++ function GoCheck() { var FormInputArray=new Array(); //User Define var ASPName="XXXXXXXXXXXXXXXXXXXX.asp"; var CallBackFunctionName="CheckingCallBack"; var WantGrayOut=true; var WantPleaseWaitPopUp=true; var PleaseWaitPopUp_Width=0; var PleaseWaitPopUp_Height=0; var PleaseWaitPopUp_HTML=""; FormInputArray['I1'] = "AAA"; FormInputArray['I2'] = "BBB"; FormInputArray['I3'] = "CCC"; ServerCheckingFrame_Exec(ASPName,CallBackFunctionName,FormInputArray,WantGrayOut,WantPleaseWaitPopUp, PleaseWaitPopUp_Width,PleaseWaitPopUp_Height,PleaseWaitPopUp_HTML); } function CheckingCallBack(IFrameObj) { alert(IFrameObj.abc); } Example Parent-----------------*/ /*Example Son+++++++++++++++++ parent.ServerCheckingFrame_CallBack(this); Example Son-----------------*/ var Tmp=""+PleaseWaitPopUp_Width; if ((Tmp=="")||(Tmp=="undefined")||(parseInt(Tmp) <= 0)) Tmp="200"; PleaseWaitPopUp_Width=parseInt(Tmp); var Tmp=""+PleaseWaitPopUp_Height; if ((Tmp=="")||(Tmp=="undefined")||(parseInt(Tmp) <= 0)) Tmp="40"; PleaseWaitPopUp_Height=parseInt(Tmp); if ((PleaseWaitPopUp_HTML=="")||(PleaseWaitPopUp_HTML=="undefined")) { PleaseWaitPopUp_HTML=''; PleaseWaitPopUp_HTML+=''; PleaseWaitPopUp_HTML+='
'; PleaseWaitPopUp_HTML+='Please wait.....'; PleaseWaitPopUp_HTML+='
'; } if (CallBackFunctionName=="") CallBackFunctionName="CheckingCallBack"; Tmp=""; if (eval(document.getElementById? document.getElementById("ServerCheckingFrame_WaitingLayer"): document.all.ServerCheckingFrame_WaitingLayer) == null) Tmp+=''; var IFrameName="ServerCheckingFrame_"; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); IFrameName+=DummyStr; Tmp+=''; if (WantGrayOut) grayOut(true); var tbody = document.getElementsByTagName("body")[0]; var tnode = document.createElement('div'); tnode.innerHTML = Tmp tbody.appendChild(tnode); if (WantPleaseWaitPopUp) { //Center Pop up Please wait screen+ var w=PleaseWaitPopUp_Width; var h=PleaseWaitPopUp_Height; var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var T=eval(document.getElementById? document.getElementById("ServerCheckingFrame_WaitingLayer"): document.all.ServerCheckingFrame_WaitingLayer); T.innerHTML=PleaseWaitPopUp_HTML; T.style.top=""+TopPosition+'px'; T.style.left=""+LeftPosition+'px'; T.style.height=""+h+'px'; T.style.width=""+w+'px'; T.style.visibility="visible"; } eval("this.document."+ IFrameName + "_Form").submit(); } function ReplaceNow(InString,From,To) { var st=''; var tmp=(InString.indexOf(From,0)); if (tmp<0) return InString; if (tmp>0) st=InString.substring(0,tmp); st+=To; if (tmp+From.length < InString.length) st+=InString.substring(tmp+From.length,InString.length); return st; } function DisplayTextAreaMsg(InSt) { var InString=InSt; while (InString.indexOf("\r\n",0)>=0) InString=ReplaceNow(InString,"\r\n","
"); return InString; } function GetRateStarName(ScoreNo) { if (ScoreNo > 4.5) return "Perfect"; else if (ScoreNo > 4) return "Fantastic"; else if (ScoreNo > 3.5) return "Great"; else if (ScoreNo > 3) return "Pleasing"; else if (ScoreNo > 2.5) return "Okay"; else if (ScoreNo > 2) return "Inaccurate"; else if (ScoreNo > 1.5) return "Problematic"; else if (ScoreNo > 1) return "Awful"; else if (ScoreNo > 0.5) return "Brutal"; else if (ScoreNo > 0) return "Shocking"; else return "No Comment"; } function CheckDate(Input,Flag) { var In=""+Input; if (In=="") return ""; var Arr=new Array(); Arr[0]=Arr[1]=Arr[2]=""; var Current=0; for (var i=0;i < In.length;i++) { var C=In.substring(i,i+1); if (((C < '0') || (C > '9')) && (C != '/')) return ""; else if (C == '/') { Current++; if (Current > 2) return ""; } else Arr[Current]+=C; } for (var j=0; j < 3; j++) { var Tmp=Arr[j]; for (i=0;i < Tmp.length; i++) { if (Tmp.substring(i,i+1)=='0') Arr[j]=Arr[j].substring(1,Arr[j].length); else break; } } if ((Arr[0]=="")||(Arr[1]=="")||(Arr[2]=="")) return ""; else if ((parseInt(Arr[0]) <=0)||(parseInt(Arr[0]) > 12)) return ""; else if ((parseInt(Arr[1]) <=0)||(parseInt(Arr[1]) > 31)) return ""; else if (((parseInt(Arr[0])==2)||(parseInt(Arr[0])==4)||(parseInt(Arr[0])==6)||(parseInt(Arr[0])==9)||(parseInt(Arr[0])==11))&&(parseInt(Arr[1])>30)) return ""; else if ((parseInt(Arr[2])>=100)&&(parseInt(Arr[2])<1900)) return ""; else if (parseInt(Arr[2])>3000) return ""; var Tmp=""; if (parseInt(Arr[0]) < 10) Tmp+="0"; Tmp+="" + parseInt(Arr[0]); Tmp+="/"; if (parseInt(Arr[1]) < 10) Tmp+="0"; Tmp+="" + parseInt(Arr[1]); Tmp+="/"; if (parseInt(Arr[2]) < 100) { if (parseInt(Arr[2]) <= 15) Tmp+="" + (2000+parseInt(Arr[2])); else Tmp+="" + (1900+parseInt(Arr[2])); } else Tmp+="" + parseInt(Arr[2]); var DDD = new Date(parseInt(Arr[2]),parseInt(Arr[0])-1,parseInt(Arr[1])); if (DDD.getMonth()+1 != parseInt(Arr[0])) return ""; if (DDD.getDate() != parseInt(Arr[1])) return ""; if ("" + Flag=="BOM") { if (DDD.getDate()!=1) return ""; } else if ("" + Flag=="EOM") { var DDDD = new Date(parseInt(Arr[2]),parseInt(Arr[0])-1,parseInt(Arr[1])+1); if (DDDD.getDate()!=1) return ""; } return Tmp; } function MakeIt(InSt) { var InString=InSt; while (InString.indexOf("%",0)>=0) InString=ReplaceNow(InString,"%","~!@"); while (InString.indexOf("~!@",0)>=0) InString=ReplaceNow(InString,"~!@","%25"); while (InString.indexOf("~",0)>=0) InString=ReplaceNow(InString,"~","%7E"); while (InString.indexOf("|",0)>=0) InString=ReplaceNow(InString,"|","%7C"); while (InString.indexOf("}",0)>=0) InString=ReplaceNow(InString,"}","%7D"); while (InString.indexOf("{",0)>=0) InString=ReplaceNow(InString,"{","%7B"); while (InString.indexOf("`",0)>=0) InString=ReplaceNow(InString,"`","%60"); while (InString.indexOf("^",0)>=0) InString=ReplaceNow(InString,"^","%5E"); while (InString.indexOf("]",0)>=0) InString=ReplaceNow(InString,"]","%5D"); while (InString.indexOf("\\",0)>=0) InString=ReplaceNow(InString,"\\","%5C"); while (InString.indexOf("[",0)>=0) InString=ReplaceNow(InString,"[","%5B"); while (InString.indexOf("?",0)>=0) InString=ReplaceNow(InString,"?","%3F"); while (InString.indexOf(">",0)>=0) InString=ReplaceNow(InString,">","%3E"); while (InString.indexOf("=",0)>=0) InString=ReplaceNow(InString,"=","%3D"); while (InString.indexOf("<",0)>=0) InString=ReplaceNow(InString,"<","%3C"); while (InString.indexOf(";",0)>=0) InString=ReplaceNow(InString,";","%3B"); while (InString.indexOf(":",0)>=0) InString=ReplaceNow(InString,":","%3A"); while (InString.indexOf(")",0)>=0) InString=ReplaceNow(InString,")","%29"); while (InString.indexOf("(",0)>=0) InString=ReplaceNow(InString,"(","%28"); while (InString.indexOf("'",0)>=0) InString=ReplaceNow(InString,"'","%27"); while (InString.indexOf("&",0)>=0) InString=ReplaceNow(InString,"&","%26"); while (InString.indexOf("$",0)>=0) InString=ReplaceNow(InString,"$","%24"); while (InString.indexOf("#",0)>=0) InString=ReplaceNow(InString,"#","%23"); while (InString.indexOf('"',0)>=0) InString=ReplaceNow(InString,'"',"%22"); while (InString.indexOf("!",0)>=0) InString=ReplaceNow(InString,"!","%21"); while (InString.indexOf("/",0)>=0) InString=ReplaceNow(InString,"/","%2F"); while (InString.indexOf(",",0)>=0) InString=ReplaceNow(InString,",","%2C"); while (InString.indexOf("+",0)>=0) InString=ReplaceNow(InString,"+","%2B"); while (InString.indexOf(" ",0)>=0) InString=ReplaceNow(InString," ","%20"); return InString; } function UnMakeIt(InSt) { var InString=InSt; while (InString.indexOf("+",0)>=0) InString=ReplaceNow(InString,"+"," "); while (InString.indexOf("%20",0)>=0) InString=ReplaceNow(InString,"%20"," "); while (InString.indexOf("%2B",0)>=0) InString=ReplaceNow(InString,"%2B","+"); while (InString.indexOf("%2C",0)>=0) InString=ReplaceNow(InString,"%2C",","); while (InString.indexOf("%2F",0)>=0) InString=ReplaceNow(InString,"%2F","/"); while (InString.indexOf("%21",0)>=0) InString=ReplaceNow(InString,"%21","!"); while (InString.indexOf("%22",0)>=0) InString=ReplaceNow(InString,"%22",'"'); while (InString.indexOf("%23",0)>=0) InString=ReplaceNow(InString,"%23","#"); while (InString.indexOf("%24",0)>=0) InString=ReplaceNow(InString,"%24","$"); while (InString.indexOf("%26",0)>=0) InString=ReplaceNow(InString,"%26","&"); while (InString.indexOf("%27",0)>=0) InString=ReplaceNow(InString,"%27","'"); while (InString.indexOf("%28",0)>=0) InString=ReplaceNow(InString,"%28","("); while (InString.indexOf("%29",0)>=0) InString=ReplaceNow(InString,"%29",")"); while (InString.indexOf("%3A",0)>=0) InString=ReplaceNow(InString,":"); while (InString.indexOf("%3B",0)>=0) InString=ReplaceNow(InString,"%3B",";"); while (InString.indexOf("%3C",0)>=0) InString=ReplaceNow(InString,"%3C","<"); while (InString.indexOf("%3D",0)>=0) InString=ReplaceNow(InString,"%3D","="); while (InString.indexOf("%3E",0)>=0) InString=ReplaceNow(InString,"%3E",">"); while (InString.indexOf("%3F",0)>=0) InString=ReplaceNow(InString,"%3F","?"); while (InString.indexOf("%5B",0)>=0) InString=ReplaceNow(InString,"%5B","["); while (InString.indexOf("%5C",0)>=0) InString=ReplaceNow(InString,"%5C","\\"); while (InString.indexOf("%5D",0)>=0) InString=ReplaceNow(InString,"%5D","]"); while (InString.indexOf("%5E",0)>=0) InString=ReplaceNow(InString,"%5E","^"); while (InString.indexOf("%60",0)>=0) InString=ReplaceNow(InString,"%60","`"); while (InString.indexOf("%7B",0)>=0) InString=ReplaceNow(InString,"%7B","{"); while (InString.indexOf("%7D",0)>=0) InString=ReplaceNow(InString,"%7D","}"); while (InString.indexOf("%7C",0)>=0) InString=ReplaceNow(InString,"%7C","|"); while (InString.indexOf("%7E",0)>=0) InString=ReplaceNow(InString,"%7E","~"); while (InString.indexOf("%BA",0)>=0) InString=ReplaceNow(InString,"%BA","º"); while (InString.indexOf("%0D",0)>=0) InString=ReplaceNow(InString,"%0D","\r"); while (InString.indexOf("%0A",0)>=0) InString=ReplaceNow(InString,"%0A","\n"); while (InString.indexOf("%25",0)>=0) InString=ReplaceNow(InString,"%25","~!@"); while (InString.indexOf("%A5",0)>=0) InString=ReplaceNow(InString,"%A5","¥"); while (InString.indexOf("%A3",0)>=0) InString=ReplaceNow(InString,"%A3","£"); while (InString.indexOf("%40",0)>=0) InString=ReplaceNow(InString,"%40","@"); while (InString.indexOf("~!@",0)>=0) InString=ReplaceNow(InString,"~!@","%"); return InString; } function GoSearchAll(XType,SearchString) { this.document.SearchForm.HypeSearchValue.value=""+SearchString; if (XType=="S") { this.document.SearchForm.SearchOption_M.value="0"; this.document.SearchForm.SearchOption_S.value="1"; this.document.SearchForm.SearchOption_G.value="0"; } else if (XType=="G") { this.document.SearchForm.SearchOption_M.value="0"; this.document.SearchForm.SearchOption_S.value="0"; this.document.SearchForm.SearchOption_G.value="1"; } else { this.document.SearchForm.SearchOption_M.value="1"; this.document.SearchForm.SearchOption_S.value="0"; this.document.SearchForm.SearchOption_G.value="0"; } this.document.SearchForm.SearchOption_Member.value="0"; this.document.SearchForm.SearchOption_PageNo.value="1"; this.document.SearchForm.SearchOption_CategoryID1.value="0"; this.document.SearchForm.SearchOption_CategoryID2.value="0"; this.document.SearchForm.SearchOption_CategoryID3.value="0"; this.document.SearchForm.SearchOption_CategoryID4.value="0"; this.document.SearchForm.SearchOption_CategoryID5.value="0"; this.document.SearchForm.SearchOption_CategoryID6.value="0"; this.document.SearchForm.SearchOption_CategoryID7.value="0"; this.document.SearchForm.SearchOption_CategoryID8.value="0"; this.document.SearchForm.SearchOption_CategoryID9.value="0"; this.document.SearchForm.SearchOption_CategoryID10.value="0"; this.document.SearchForm.SearchOption_CategoryID11.value="0"; this.document.SearchForm.SearchOption_CategoryID12.value="0"; this.document.SearchForm.SearchOption_CategoryID13.value="0"; this.document.SearchForm.SearchOption_CategoryID14.value="0"; this.document.SearchForm.SearchOption_CategoryID15.value="0"; this.document.SearchForm.SearchOption_CategoryID16.value="0"; this.document.SearchForm.SearchOption_CategoryID17.value="0"; this.document.SearchForm.SearchOption_CategoryID18.value="0"; this.document.SearchForm.SearchOption_CategoryID19.value="0"; this.document.SearchForm.SearchOption_CategoryID20.value="0"; this.document.SearchForm.SearchOption_CategoryID21.value="0"; this.document.SearchForm.SearchOption_CategoryID22.value="0"; this.document.SearchForm.SearchOption_CategoryID23.value="0"; this.document.SearchForm.SearchOption_CategoryID24.value="0"; this.document.SearchForm.SearchOption_CategoryID25.value="0"; this.document.SearchForm.SearchOption_CategoryID26.value="0"; this.document.SearchForm.SearchOption_CategoryID27.value="0"; this.document.SearchForm.SearchOption_CategoryID28.value="0"; this.document.SearchForm.SearchOption_CategoryID29.value="0"; this.document.SearchForm.SearchOption_CategoryID30.value="0"; this.document.SearchForm.SearchOption_CategoryID31.value="0"; this.document.SearchForm.SearchOption_CategoryID32.value="0"; this.document.SearchForm.SearchOption_CategoryID33.value="0"; this.document.SearchForm.SearchOption_CategoryID34.value="0"; this.document.SearchForm.SearchOption_CategoryID35.value="0"; this.document.SearchForm.SearchOption_CategoryID36.value="0"; this.document.SearchForm.SearchOption_CategoryID37.value="0"; this.document.SearchForm.SearchOption_CategoryID38.value="0"; this.document.SearchForm.SearchOption_CategoryID39.value="0"; this.document.SearchForm.SearchOption_CategoryID40.value="0"; this.document.SearchForm.SearchOption_CategoryID41.value="0"; this.document.SearchForm.SearchOption_CategoryID42.value="0"; this.document.SearchForm.SearchOption_CategoryID43.value="0"; this.document.SearchForm.SearchOption_CategoryID44.value="0"; this.document.SearchForm.SearchOption_CategoryID45.value="0"; this.document.SearchForm.SearchOption_CategoryID46.value="0"; this.document.SearchForm.SearchOption_CategoryID47.value="0"; this.document.SearchForm.SearchOption_CategoryID48.value="0"; this.document.SearchForm.SearchOption_CategoryID49.value="0"; this.document.SearchForm.SearchOption_CategoryID50.value="0"; this.document.SearchForm.submit(); } function GoTopList(TopType,ContentType) { this.location="http://www.everhype.com/TopList.asp?T="+TopType+"&X="+ContentType+"&P=1"; } function GoSearchCategory(CategoryID1,CategoryID2,CategoryID3,CategoryID4,CategoryID5,CategoryID6,CategoryID7,CategoryID8,CategoryID9,CategoryID10 ,CategoryID11,CategoryID12,CategoryID13,CategoryID14,CategoryID15,CategoryID16,CategoryID17,CategoryID18,CategoryID19,CategoryID20 ,CategoryID21,CategoryID22,CategoryID23,CategoryID24,CategoryID25,CategoryID26,CategoryID27,CategoryID28,CategoryID29,CategoryID30 ,CategoryID31,CategoryID32,CategoryID33,CategoryID34,CategoryID35,CategoryID36,CategoryID37,CategoryID38,CategoryID39,CategoryID40 ,CategoryID41,CategoryID42,CategoryID43,CategoryID44,CategoryID45,CategoryID46,CategoryID47,CategoryID48,CategoryID49,CategoryID50) { this.document.SearchForm.HypeSearchValue.value=""; this.document.SearchForm.SearchOption_M.value=""; this.document.SearchForm.SearchOption_S.value=""; this.document.SearchForm.SearchOption_G.value=""; this.document.SearchForm.SearchOption_Member.value=""; this.document.SearchForm.SearchOption_PageNo.value="1"; this.document.SearchForm.SearchOption_CategoryID1.value=""+CategoryID1; this.document.SearchForm.SearchOption_CategoryID2.value=""+CategoryID2; this.document.SearchForm.SearchOption_CategoryID3.value=""+CategoryID3; this.document.SearchForm.SearchOption_CategoryID4.value=""+CategoryID4; this.document.SearchForm.SearchOption_CategoryID5.value=""+CategoryID5; this.document.SearchForm.SearchOption_CategoryID6.value=""+CategoryID6; this.document.SearchForm.SearchOption_CategoryID7.value=""+CategoryID7; this.document.SearchForm.SearchOption_CategoryID8.value=""+CategoryID8; this.document.SearchForm.SearchOption_CategoryID9.value=""+CategoryID9; this.document.SearchForm.SearchOption_CategoryID10.value=""+CategoryID10; this.document.SearchForm.SearchOption_CategoryID11.value=""+CategoryID11; this.document.SearchForm.SearchOption_CategoryID12.value=""+CategoryID12; this.document.SearchForm.SearchOption_CategoryID13.value=""+CategoryID13; this.document.SearchForm.SearchOption_CategoryID14.value=""+CategoryID14; this.document.SearchForm.SearchOption_CategoryID15.value=""+CategoryID15; this.document.SearchForm.SearchOption_CategoryID16.value=""+CategoryID16; this.document.SearchForm.SearchOption_CategoryID17.value=""+CategoryID17; this.document.SearchForm.SearchOption_CategoryID18.value=""+CategoryID18; this.document.SearchForm.SearchOption_CategoryID19.value=""+CategoryID19; this.document.SearchForm.SearchOption_CategoryID20.value=""+CategoryID20; this.document.SearchForm.SearchOption_CategoryID21.value=""+CategoryID21; this.document.SearchForm.SearchOption_CategoryID22.value=""+CategoryID22; this.document.SearchForm.SearchOption_CategoryID23.value=""+CategoryID23; this.document.SearchForm.SearchOption_CategoryID24.value=""+CategoryID24; this.document.SearchForm.SearchOption_CategoryID25.value=""+CategoryID25; this.document.SearchForm.SearchOption_CategoryID26.value=""+CategoryID26; this.document.SearchForm.SearchOption_CategoryID27.value=""+CategoryID27; this.document.SearchForm.SearchOption_CategoryID28.value=""+CategoryID28; this.document.SearchForm.SearchOption_CategoryID29.value=""+CategoryID29; this.document.SearchForm.SearchOption_CategoryID30.value=""+CategoryID30; this.document.SearchForm.SearchOption_CategoryID31.value=""+CategoryID31; this.document.SearchForm.SearchOption_CategoryID32.value=""+CategoryID32; this.document.SearchForm.SearchOption_CategoryID33.value=""+CategoryID33; this.document.SearchForm.SearchOption_CategoryID34.value=""+CategoryID34; this.document.SearchForm.SearchOption_CategoryID35.value=""+CategoryID35; this.document.SearchForm.SearchOption_CategoryID36.value=""+CategoryID36; this.document.SearchForm.SearchOption_CategoryID37.value=""+CategoryID37; this.document.SearchForm.SearchOption_CategoryID38.value=""+CategoryID38; this.document.SearchForm.SearchOption_CategoryID39.value=""+CategoryID39; this.document.SearchForm.SearchOption_CategoryID40.value=""+CategoryID40; this.document.SearchForm.SearchOption_CategoryID41.value=""+CategoryID41; this.document.SearchForm.SearchOption_CategoryID42.value=""+CategoryID42; this.document.SearchForm.SearchOption_CategoryID43.value=""+CategoryID43; this.document.SearchForm.SearchOption_CategoryID44.value=""+CategoryID44; this.document.SearchForm.SearchOption_CategoryID45.value=""+CategoryID45; this.document.SearchForm.SearchOption_CategoryID46.value=""+CategoryID46; this.document.SearchForm.SearchOption_CategoryID47.value=""+CategoryID47; this.document.SearchForm.SearchOption_CategoryID48.value=""+CategoryID48; this.document.SearchForm.SearchOption_CategoryID49.value=""+CategoryID49; this.document.SearchForm.SearchOption_CategoryID50.value=""+CategoryID50; this.document.SearchForm.submit(); } function GoNeedAccountConfirm_Msg() { MyAlert("Please confirm your email address to access this function.",400,150); } function ConfirmAccount() { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=630; PopUpD_Max_H=350; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getFullYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/ConfirmAccount.asp?Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function ResendConfirmAccountEmail() { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=550; PopUpD_Max_H=350; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getFullYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/ConfirmAccount.asp?XType=S&Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function GoNeedLogin_Msg() { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=550; PopUpD_Max_H=350; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getFullYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/NeedLoginMsg.asp?Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function SearchKeyDown(e) { var keyCode=0; if (!e) e = window.event; if(""+e.keyCode=="undefined") keyCode=e.charCode; else keyCode=e.keyCode; //Enter if (keyCode==13) { e.returnValue=false; e.cancel = true; GoHypeSearch(); } } function grayOut(vis, options) { // Pass true to gray out screen, false to ungray // options are optional. This is a JSON object with the following (optional) properties // opacity:0-100 // Lower number = less grayout higher = more of a blackout // zindex: # // HTML elements with a higher zindex appear on top of the gray out // bgcolor: (#xxxxxx) // Standard RGB Hex color code // grayOut(true, {'zindex':'50', 'bgcolor':'#0000FF', 'opacity':'70'}); // Because options is JSON opacity/zindex/bgcolor are all optional and can appear // in any order. Pass only the properties you need to set. var options = options || {}; var zindex = options.zindex || 50; var opacity = options.opacity || 50; var opaque = (opacity / 100); var bgcolor = options.bgcolor || '#000000'; var dark=document.getElementById('darkenScreenObject'); if (!dark) { // The dark layer doesn't exist, it's never been created. So we'll // create it here and apply some basic styles. // If you are getting errors in IE see: http://support.microsoft.com/default.aspx/kb/927917 var tbody = document.getElementsByTagName("body")[0]; var tnode = document.createElement('div'); // Create the layer. tnode.style.position='absolute'; // Position absolutely tnode.style.top='0px'; // In the top tnode.style.left='0px'; // Left corner of the page tnode.style.overflow='hidden'; // Try to avoid making scroll bars tnode.style.display='none'; // Start out Hidden tnode.id='darkenScreenObject'; // Name it so we can find it later tbody.appendChild(tnode); // Add it to the web page dark=document.getElementById('darkenScreenObject'); // Get the object. } if (vis) { // Calculate the page width and height if( document.body && ( document.body.scrollWidth || document.body.scrollHeight ) ) { pageWidth = document.body.scrollWidth+'px'; pageHeight = document.body.scrollHeight+'px'; } else if( document.body.offsetWidth ) { pageWidth = document.body.offsetWidth+'px'; pageHeight = document.body.offsetHeight+'px'; } else { pageWidth='100%'; pageHeight='100%'; } //set the shader to cover the entire page and make it visible. dark.style.opacity=opaque; dark.style.MozOpacity=opaque; dark.style.filter='alpha(opacity='+opacity+')'; dark.style.zIndex=zindex; dark.style.backgroundColor=bgcolor; dark.style.width= pageWidth; dark.style.height= pageHeight; dark.style.display='block'; if (IsIE) document.getElementsByTagName("body")[0].style.overflow="hidden"; } else { dark.style.display='none'; if (IsIE) document.getElementsByTagName("body")[0].style.overflow="auto"; } if (vis) { for (var xx=1; xx <= 10; xx++) { var EverHYPE_FlashLayer=document.getElementById? eval('document.getElementById("EverHYPE_FlashLayer"+xx)'): eval("document.all.FlashLevel"+xx); if (EverHYPE_FlashLayer!=null) EverHYPE_FlashLayer.style.visibility="hidden"; } } else { for (var xx=1; xx <= 10; xx++) { var EverHYPE_FlashLayer=document.getElementById? eval('document.getElementById("EverHYPE_FlashLayer"+xx)'): eval("document.all.FlashLevel"+xx); if (EverHYPE_FlashLayer!=null) EverHYPE_FlashLayer.style.visibility="visible"; } } } function ReportYouTubePathNotWorking(ContentScoringID) { BackgroundD.innerHTML = ''; document.ReportYouTubePathNotWorkingForm.submit(); } function GoHypeSearch() { var Tmp=""+this.document.SearchForm.HypeSearchValue.value.replace(/^\s+/,"");//Left Trim Tmp=Tmp.replace(/\s+$/,"");//Right Trim var Tmp1=Tmp; Tmp1=Tmp1.toLowerCase(); if (this.document.SearchForm.XSearchOption_M.checked) { if ((Tmp1.lastIndexOf("movie") >= 0)&&(Tmp1.lastIndexOf("movie")==Tmp1.length-5)) Tmp=Tmp.substring(0,Tmp.length-5); else if ((Tmp1.lastIndexOf("movies") >= 0)&&(Tmp1.lastIndexOf("movies")==Tmp1.length-6)) Tmp=Tmp.substring(0,Tmp.length-6); } if (this.document.SearchForm.XSearchOption_G.checked) { if ((Tmp1.lastIndexOf("game") >= 0)&&(Tmp1.lastIndexOf("game")==Tmp1.length-4)) Tmp=Tmp.substring(0,Tmp.length-4); else if ((Tmp1.lastIndexOf("games") >= 0)&&(Tmp1.lastIndexOf("games")==Tmp1.length-5)) Tmp=Tmp.substring(0,Tmp.length-5); } if (this.document.SearchForm.XSearchOption_S.checked) { if ((Tmp1.lastIndexOf("music") >= 0)&&(Tmp1.lastIndexOf("music")==Tmp1.length-5)) Tmp=Tmp.substring(0,Tmp.length-5); } Tmp=Tmp.replace(/^\s+/,"");//Left Trim Tmp=Tmp.replace(/\s+$/,"");//Right Trim this.document.SearchForm.HypeSearchValue.value=Tmp; if (this.document.SearchForm.HypeSearchValue.value=="") { MyAlert("Nothing can be searched.",400,150); return; } if (this.document.SearchForm.XSearchOption_M.checked) this.document.SearchForm.SearchOption_M.value="1"; else this.document.SearchForm.SearchOption_M.value="0"; if (this.document.SearchForm.XSearchOption_S.checked) this.document.SearchForm.SearchOption_S.value="1"; else this.document.SearchForm.SearchOption_S.value="0"; if (this.document.SearchForm.XSearchOption_G.checked) this.document.SearchForm.SearchOption_G.value="1"; else this.document.SearchForm.SearchOption_G.value="0"; if (this.document.SearchForm.XSearchOption_Member.checked) this.document.SearchForm.SearchOption_Member.value="1"; else this.document.SearchForm.SearchOption_Member.value="0"; this.document.SearchForm.SearchOption_CategoryID1.value="0"; this.document.SearchForm.SearchOption_CategoryID2.value="0"; this.document.SearchForm.SearchOption_CategoryID3.value="0"; this.document.SearchForm.SearchOption_CategoryID4.value="0"; this.document.SearchForm.SearchOption_CategoryID5.value="0"; this.document.SearchForm.SearchOption_CategoryID6.value="0"; this.document.SearchForm.SearchOption_CategoryID7.value="0"; this.document.SearchForm.SearchOption_CategoryID8.value="0"; this.document.SearchForm.SearchOption_CategoryID9.value="0"; this.document.SearchForm.SearchOption_CategoryID10.value="0"; this.document.SearchForm.SearchOption_CategoryID11.value="0"; this.document.SearchForm.SearchOption_CategoryID12.value="0"; this.document.SearchForm.SearchOption_CategoryID13.value="0"; this.document.SearchForm.SearchOption_CategoryID14.value="0"; this.document.SearchForm.SearchOption_CategoryID15.value="0"; this.document.SearchForm.SearchOption_CategoryID16.value="0"; this.document.SearchForm.SearchOption_CategoryID17.value="0"; this.document.SearchForm.SearchOption_CategoryID18.value="0"; this.document.SearchForm.SearchOption_CategoryID19.value="0"; this.document.SearchForm.SearchOption_CategoryID20.value="0"; this.document.SearchForm.SearchOption_CategoryID21.value="0"; this.document.SearchForm.SearchOption_CategoryID22.value="0"; this.document.SearchForm.SearchOption_CategoryID23.value="0"; this.document.SearchForm.SearchOption_CategoryID24.value="0"; this.document.SearchForm.SearchOption_CategoryID25.value="0"; this.document.SearchForm.SearchOption_CategoryID26.value="0"; this.document.SearchForm.SearchOption_CategoryID27.value="0"; this.document.SearchForm.SearchOption_CategoryID28.value="0"; this.document.SearchForm.SearchOption_CategoryID29.value="0"; this.document.SearchForm.SearchOption_CategoryID30.value="0"; this.document.SearchForm.SearchOption_CategoryID31.value="0"; this.document.SearchForm.SearchOption_CategoryID32.value="0"; this.document.SearchForm.SearchOption_CategoryID33.value="0"; this.document.SearchForm.SearchOption_CategoryID34.value="0"; this.document.SearchForm.SearchOption_CategoryID35.value="0"; this.document.SearchForm.SearchOption_CategoryID36.value="0"; this.document.SearchForm.SearchOption_CategoryID37.value="0"; this.document.SearchForm.SearchOption_CategoryID38.value="0"; this.document.SearchForm.SearchOption_CategoryID39.value="0"; this.document.SearchForm.SearchOption_CategoryID40.value="0"; this.document.SearchForm.SearchOption_CategoryID41.value="0"; this.document.SearchForm.SearchOption_CategoryID42.value="0"; this.document.SearchForm.SearchOption_CategoryID43.value="0"; this.document.SearchForm.SearchOption_CategoryID44.value="0"; this.document.SearchForm.SearchOption_CategoryID45.value="0"; this.document.SearchForm.SearchOption_CategoryID46.value="0"; this.document.SearchForm.SearchOption_CategoryID47.value="0"; this.document.SearchForm.SearchOption_CategoryID48.value="0"; this.document.SearchForm.SearchOption_CategoryID49.value="0"; this.document.SearchForm.SearchOption_CategoryID50.value="0"; if ((this.document.SearchForm.SearchOption_M.value!="1")&&(this.document.SearchForm.SearchOption_S.value!="1") &&(this.document.SearchForm.SearchOption_G.value!="1")&&(this.document.SearchForm.SearchOption_Member.value!="1")) { this.document.SearchForm.SearchOption_M.value="1"; this.document.SearchForm.SearchOption_S.value="1"; this.document.SearchForm.SearchOption_G.value="1"; this.document.SearchForm.SearchOption_Member.value="1"; } this.document.SearchForm.submit(); } function GoSearchByCategory() { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var w=Wid-50; var h=Hei-50; PopUpSizeNeedResize=true; PopUpD_Max_W=770; PopUpD_Max_H=600; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/SearchByCategory.asp?Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function GoAdvancedSearch() { return; var AdvSearchArea=document.getElementById? document.getElementById("AdvSearchArea"): document.all.AdvSearchArea; var AdvSearchArea_Tmp=document.getElementById? document.getElementById("AdvSearchArea_Tmp"): document.all.AdvSearchArea_Tmp; AdvSearchArea.innerHTML=AdvSearchArea_Tmp.innerHTML; AdvSearchArea_Tmp.innerHTML=""; /* grayOut(true); w=374; h=115; PopUpSizeNeedResize=false; var PopUpState=document.getElementById? document.getElementById("PopUpDState"): document.all.PopUpDState; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/AdvancedSearchOption.asp?Dummy="+DummyStr+"&SearchOption_M="; dummy+=this.document.SearchForm.SearchOption_M.value; dummy+="&SearchOption_S="+this.document.SearchForm.SearchOption_S.value; dummy+="&SearchOption_G="+this.document.SearchForm.SearchOption_G.value; dummy+="&SearchOption_Member="+this.document.SearchForm.SearchOption_Member.value; dummy+="&HypeSearchValue="+MakeIt(this.document.SearchForm.HypeSearchValue.value); PopUpState.style.zIndex=51; PopUpState.style.width=w; PopUpState.style.height=h; PopUpState.style.visibility="visible"; PopUpState.innerHTML = ''; */} function GoFriendPage() { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var w=Wid-50; var h=Hei-50; PopUpSizeNeedResize=true; PopUpD_Max_W=980; PopUpD_Max_H=0; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/Friends.asp?Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } /*function ClickRmberPwd() { if (this.document.Form1.RememberPwd.checked) this.document.Form1.RememberLogin.checked=true; } function ClickRmberLogin() { if (!this.document.Form1.RememberLogin.checked) this.document.Form1.RememberPwd.checked=false; }*/ function Home_GoRefreshHomeData() { var Check=document.getElementById? document.getElementById("CheckD"): document.all.CheckD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/RefreshHomeData.asp?Dummy="+DummyStr; CheckD.innerHTML = ''; } function HomeLoginNow() { if ((document.Form1.L_LoginName.value == '')||(document.Form1.L_LoginName.value == ' ')) { MyAlert("Please enter your Email Address.",400,150); document.Form1.L_LoginName.focus(); return; } if ((document.Form1.L_Pwd.value == '')||(document.Form1.L_Pwd.value == ' ')) { MyAlert("Please enter your Password.",400,150); document.Form1.L_Pwd.focus(); return; } document.Form1.XType.value="L"; document.Form1.submit(); } function HomeKeyUp(Obj,e) { var keyCode=0; if (!e) e = window.event; if(""+e.keyCode=="undefined") keyCode=e.charCode; else keyCode=e.keyCode; //Enter if (keyCode==13) { var Tmp=Obj.name; if (Tmp=="L_LoginName") { e.returnValue=false; e.cancel = true; document.Form1.L_Pwd.focus(); } else if (Tmp=="L_Pwd") { e.returnValue=false; e.cancel = true; HomeLoginNow(); } } //Tab /* if (keyCode==9) { var Tmp=Obj.name; if (Tmp=="L_LoginName") { e.returnValue=false; e.cancel = true; document.Form1.L_Pwd.focus(); } } */} function Profile_GoOpenCommentScreen(P_CustomerID,P_ContentType,P_ContentScoringID,FromScreenName) { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; PopUpSizeNeedResize=true; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=950; PopUpD_Max_H=0; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/ContentComments.asp?C="+P_CustomerID+"&X="+P_ContentType+P_ContentScoringID+"&FromScreenName="+FromScreenName+"&Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; // this.location="http://www.everhype.com/ContentComments.asp?C="+P_CustomerID+"&X="+P_ContentType+P_ContentScoringID; } function Profile_ShowRateDetailScore(ImgObj,Obj,Output) { if (Obj.innerHTML=="") { Obj.innerHTML=""+Output; ImgObj.src="http://www.everhype.com/images/negative.gif"; } else { Obj.innerHTML=""; ImgObj.src="http://www.everhype.com/images/positive.gif"; } } function Profile_GoAnotherContent(P_CustomerID,P_NickName,ContentType,ContentScoringID) { this.location=""+P_NickName+"?X="+ContentType+ContentScoringID; } /* function Profile_WallOtherPage(P_NickName,ContentType,ContentScoringID,WallPageNo) { this.location=""+P_NickName+"?X="+ContentType+ContentScoringID+"&WP="+WallPageNo; } */ function Profile_WallOtherPage(L_CustomerID,P_CustomerID,WallPageNo,IPerP,P_ContentType) { var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); BackgroundD.innerHTML = ''; } function Profile_FriendOtherPage(L_CustomerID,P_CustomerID,FriendPageNo,IPerP,P_ContentType) { var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); BackgroundD.innerHTML = ''; } function Profile_SummaryOtherPage(P_CustomerID,P_NickName,ContentType,SummaryPageNo,IPerP) { this.location=""+P_NickName+"?X="+ContentType+"&SP="+SummaryPageNo; } function Profile_ChangeContentType(P_CustomerID,P_NickName,ContentType) { this.location=""+P_NickName+"?X="+ContentType; } function TopList_OtherPage(TopType,ContentType,NumOfDay,num) { this.location="http://www.everhype.com/TopList.asp?T="+TopType+"&X="+ContentType+"&P="+num+"&D="+NumOfDay; } function Search_OtherPage(num) { this.document.SearchForm.action="Search.asp"; this.document.SearchForm.SearchOption_PageNo.value=""+num; this.document.SearchForm.submit(); } function ContentMgr_OtherPage(ContentType,num) { this.document.Form1.action="ContentMgr.asp?T="+ContentType; this.document.Form1.PageNo.value=""+num; this.document.Form1.submit(); } function ContentMgr_SortBy(ContentType,SortBy) { this.document.Form1.action="ContentMgr.asp?T="+ContentType; this.document.Form1.XType.value="CHANGE_CONTENTMGR_SORT_BY"; this.document.Form1.PageNo.value="1"; this.document.Form1.NewValue.value=""+SortBy; this.document.Form1.submit(); } function ContentMgr_GoDelete(ContentType,ContentScoringID) { if (!confirm('Are you sure you want to delete this record now?')) return; document.Form1.action="ContentMgr.asp?T="+ContentType; document.Form1.XType.value="D"; document.Form1.ContentScoringID.value=""+ContentScoringID; document.Form1.submit(); } function ContentMgr_GoDetail(ContentType,ContentScoringID) { document.Form1.action="ContentMgrDetail.asp?T="+ContentType; if (""+ContentScoringID=="0") document.Form1.XType.value="E"; else document.Form1.XType.value=""; document.Form1.ContentScoringID.value=""+ContentScoringID; document.Form1.submit(); } function ContentMgr_GoEdit(ContentType,ContentScoringID) { document.Form1.action="ContentMgrDetail.asp?T="+ContentType; document.Form1.XType.value="E"; document.Form1.ContentScoringID.value=""+ContentScoringID; document.Form1.submit(); } function ContentMgrWizard() { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; PopUpSizeNeedResize=true; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=980; PopUpD_Max_H=0; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/ContentMgrWizard.asp?Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function ContentMgr_GoWizard() { document.Form1.action="ContentMgrWizard.asp"; document.Form1.ContentScoringID.value="0"; document.Form1.submit(); } function ContentMgr_CopyDetail(ContentType,ContentScoringID) { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; PopUpSizeNeedResize=true; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=980; PopUpD_Max_H=0; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/ContentMgrDetail.asp?T="+ContentType+"&XType=E&ContentScoringID=0&CopyCSID="+ContentScoringID+"&CopyImgCSID="+ContentScoringID+"&Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function MyAlert(Msg,myw,myh) { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=myw; PopUpD_Max_H=myh; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getFullYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/MyAlert.asp?Msg="+Msg+"&Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function MyConfirm(Msg,myw,myh,Index1,Index2,Index3,Index4,Index5) { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=myw; PopUpD_Max_H=myh; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getFullYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/MyConfirm.asp?Index1="+Index1+"&Index2="+Index2+"&Index3="+Index3+"&Index4="+Index4+"&Index5="+Index5+"&Msg="+Msg+"&Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function Friends_MyConfirm(Msg,myw,myh,Index1,Index2,Index3,Index4,Index5) { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=myw; PopUpD_Max_H=myh; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getFullYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/Friends_MyConfirm.asp?Index1="+Index1+"&Index2="+Index2+"&Index3="+Index3+"&Index4="+Index4+"&Index5="+Index5+"&Msg="+Msg+"&Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function MyparseInt(s) { var Input="" + s; var Output=""; var Start=""; var CountLengthBeforeDot=0; var GoCount=true; for (var i=0; i < Input.length;i++) { var C=""+Input.substring(i,i+1); if (((C >= '0') && (C <= '9')) || (C=='.') || (C=='-')) { Output+=C; if ((Start=="")&&(C!='-')) Start=C; if (C=='.') GoCount=false; if (GoCount) CountLengthBeforeDot++; } } if ((CountLengthBeforeDot > 1)&&(Start=="0")) { Input=Output; Output=""; for (i=0; i < Input.length;i++) { if (""+Input.substring(i,i+1)!="0") break; } for (; i < Input.length;i++) Output+=""+Input.substring(i,i+1); } if (Output=="") Output="0"; return parseInt(Output); } function CreateNewAccount(SeeMoreCustomerID) { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; PopUpSizeNeedResize=false; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=620; PopUpD_Max_H=540; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/CreateNewAccount.asp?SeeMoreCustomerID="+SeeMoreCustomerID+"&Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function EmailOK(Email) { var X=Email; if ((X!='')&&(X!=null)) { var A=false; var D=false; for (var i=0;i < X.length;i=i+1) { var C=X.substring(i,i+1); if (C=='@') { if ((A)||(i== X.length-1)) { A=false; break; } A=true; } else if (C=='.') { if (i== X.length-1) { D=false; break; } D=true; } } if ((!A)||(!D)) return false; else return true; } else return true; } function Forgetpwd() { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; PopUpSizeNeedResize=false; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=450; PopUpD_Max_H=250; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/ForgetPwd.asp?Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function RefreshInBox(OldCount,NewCount) { if (CurrentNumOldMsg==""+OldCount && CurrentNumNewMsg==""+NewCount) return; CurrentNumOldMsg=""+OldCount; CurrentNumNewMsg=""+NewCount; var TmpX=parent.InBoxMsgArea; if (TmpX!=null) { if (CurrentNumOldMsg=="0" && CurrentNumNewMsg=="0") { TmpX.innerHTML=""; return; } var Tmp='   '; if ((CurrentNumOldMsg!="0")&&(CurrentNumNewMsg!="0")) { Tmp+='('+CurrentNumOldMsg+')Old, ('+CurrentNumNewMsg+')New Msgs.'; } else if (CurrentNumOldMsg!="0") { Tmp+='('+CurrentNumOldMsg+')Old Msg'; if(CurrentNumOldMsg!="1") Tmp+="s"; Tmp+='.'; } else if (CurrentNumNewMsg!="0") { Tmp+='('+CurrentNumNewMsg+')New Msg'; if(CurrentNumNewMsg!="1") Tmp+="s"; Tmp+='.'; } Tmp+=''; TmpX.innerHTML=Tmp; } } function CheckMsg() { var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; PopUpSizeNeedResize=false; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=510; PopUpD_Max_H=350; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="CheckMsg.asp?Dummy="+DummyStr; PopUp.style.zIndex=1; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } /*function Profile_RateNow(Rate,Comments) { document.Form1.XType.value="R"; document.Form1.NewRate.value=""+Rate; document.Form1.NewComments.value=""+Comments; document.Form1.submit(); }*/ function Profile_DeleteWallMsg(WallMsgID) { document.Form1.XType.value="WALL_DEL"; document.Form1.WallMsgID.value=""+WallMsgID; document.Form1.submit(); } function Profile_GoPostWallMsg() { if (document.WallForm.AddWallMsg.value=="") { MyAlert("Invalid Message.",400,150); return; } BackgroundD.innerHTML = ''; document.WallForm.submit(); } function Profile_GoPostCommentMsg() { if (document.CommentForm.AddCommentMsg.value=="") { MyAlert("Invalid Message.",400,150); return; } BackgroundD.innerHTML = ''; document.CommentForm.submit(); } /*function Profile_AddWallMsg(P_CustomerID) { grayOut(true); var w=510; var h=350; var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; PopUpSizeNeedResize=false; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="../AddWallMsg.asp?C="+P_CustomerID+"&Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function Profile_RateThisContent(P_ContentType,P_ContentScoringID) { grayOut(true); var w=510; var h=350; var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; PopUpSizeNeedResize=false; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="../RateThisContent.asp?X1="+P_ContentType+"&X2="+P_ContentScoringID+"&Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; }*/ function Profile_SaveRateNow(ObjName,L_CustomerID,P_CustomerID) { if (L_CustomerID=="") { MyAlert("Please login to EverHYPE.com to have your say on this HYPE. If you are not a member, you are welcome to join by clicking on the Become a Hyper button.",400,150); return; } if (L_CustomerID==P_CustomerID) { MyAlert("Sorry, you cannot rate your own Hype.",400,150); return; } var Obj=eval(ObjName); var R=""+Obj.src; var RR=""; var RateScore="N/A"; if (R.indexOf('RateNumber_NA.gif')!= -1) { RR="-1"; RateScore="N/A"; } else if (R.indexOf('RateNumber_0.gif')!= -1) { RR="0"; RateScore="0"; } else if (R.indexOf('RateNumber_0Dot5.gif')!= -1) { RR="10"; RateScore="0.5"; } else if (R.indexOf('RateNumber_1.gif')!= -1) { RR="20"; RateScore="1"; } else if (R.indexOf('RateNumber_1Dot5.gif')!= -1) { RR="30"; RateScore="1.5"; } else if (R.indexOf('RateNumber_2.gif')!= -1) { RR="40"; RateScore="2"; } else if (R.indexOf('RateNumber_2Dot5.gif')!= -1) { RR="50"; RateScore="2.5"; } else if (R.indexOf('RateNumber_3.gif')!= -1) { RR="60"; RateScore="3"; } else if (R.indexOf('RateNumber_3Dot5.gif')!= -1) { RR="70"; RateScore="3.5"; } else if (R.indexOf('RateNumber_4.gif')!= -1) { RR="80"; RateScore="4"; } else if (R.indexOf('RateNumber_4Dot5.gif')!= -1) { RR="90"; RateScore="4.5"; } else if (R.indexOf('RateNumber_5.gif')!= -1) { RR="100"; RateScore="5"; } else { MyAlert("Please choose a rate first.",400,150); return; } // MyConfirm('Are you sure you want to rate this Hype with a score of '+RateScore+'?',450,150,'PROFILE_RATE_NOW',""+RR,'','',''); ConfirmYes('PROFILE_RATE_NOW',""+RR,'','',''); } function HidePop(Msg) { PopUpSizeNeedResize=false; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; PopUp.innerHTML = ''; PopUp.style.visibility="hidden"; if ((""+Msg!="")&&(""+Msg!="undefined")) MyAlert(""+Msg,400,150); else grayOut(false); } function HidePopState(Msg) { PopUpSizeNeedResize=false; var PopUpState=document.getElementById? document.getElementById("PopUpDState"): document.all.PopUpDState; PopUpState.innerHTML = ''; PopUpState.style.visibility="hidden"; if ((""+Msg!="")&&(""+Msg!="undefined")) MyAlert(""+Msg,400,150); else grayOut(false); } function GoCheck(CheckingTime,L_CustomerID) { var Check=document.getElementById? document.getElementById("CheckD"): document.all.CheckD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="Check.asp?C="+L_CustomerID+"&Dummy="+DummyStr; CheckD.innerHTML = ''; setTimeout("GoCheck("+CheckingTime+","+L_CustomerID+")",CheckingTime); } function GoHypeBox() { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; PopUpSizeNeedResize=true; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=930; PopUpD_Max_H=0; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/HypeBox_Main.asp?Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function RemoveFriendship(ToCustomerID) { MyConfirm('Are you sure you want to remove the friendship now?',450,150,'PROFILE_REMOVE_FRIENDSHIP',""+ToCustomerID,'','',''); } function RequestFriendship(ToCustomerID) { RequestFriendship_MyConfirm(""+ToCustomerID); } function RequestFriendship_MyConfirm(ToCustomerID) { grayOut(true); w=520; h=170; var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=520; PopUpD_Max_H=170; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getFullYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/RequestFriendship_MyConfirm.asp?ToCustomerID="+ToCustomerID+"&Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function SendHypeBoxMsg(ToCustomerID) { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; PopUpSizeNeedResize=true; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=910; PopUpD_Max_H=0; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/HypeBox_Compose.asp?XType=DIR&ToCustomerID="+ToCustomerID+"&Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function EditInfo() { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; PopUpSizeNeedResize=true; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=900; PopUpD_Max_H=0; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/EditInfo.asp?Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function Profile_PopMenu(P_CustomerID) { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; PopUpSizeNeedResize=true; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=950; PopUpD_Max_H=0; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/ProfileMenu.asp?P_CustomerID="+P_CustomerID+"&Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function ContentMgr(ContentMgr) { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; PopUpSizeNeedResize=true; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=980; PopUpD_Max_H=0; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/ContentMgr.asp?T="+ContentMgr+"&Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } function ContentMgrDetail(ContentType,ContentScoringID) { grayOut(true); var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; PopUpSizeNeedResize=true; var w=Wid-50; var h=Hei-50; PopUpD_Max_W=980; PopUpD_Max_H=0; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; var LeftPosition = ((Wid) ? (Wid-w)/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-h)/2 : 0) + ScrollTop; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="http://www.everhype.com/ContentMgrDetail.asp?XType=E&T="+ContentType+"&ContentScoringID="+ContentScoringID+"&Dummy="+DummyStr; PopUp.style.zIndex=51; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; PopUp.style.width=w; PopUp.style.height=h; PopUp.style.visibility="visible"; PopUp.innerHTML = ''; } /*function ControlPanel() { grayOut(true); w=450; h=115; var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; PopUpSizeNeedResize=false; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var ScrollWidth=document.body.scrollWidth; var LeftPosition = (ScrollWidth)/2; var TopPosition = 58; var PopUpState=document.getElementById? document.getElementById("PopUpDState"): document.all.PopUpDState; var CD=new Date(); var DummyStr=CD.getYear()+"__"; DummyStr+=CD.getMonth()+"__"; DummyStr+=CD.getDay()+"__"; DummyStr+=CD.getHours()+"__"; DummyStr+=CD.getMinutes()+"__"; DummyStr+=CD.getSeconds()+"__"; DummyStr+=CD.getMilliseconds(); var dummy="../ControlPanel.asp?Dummy="+DummyStr; PopUpState.style.zIndex=51; PopUpState.style.top=TopPosition; PopUpState.style.left=LeftPosition; PopUpState.style.width=w; PopUpState.style.height=h; PopUpState.style.visibility="visible"; PopUpState.innerHTML = ''; }*/ function UserResize() { if (!PopUpSizeNeedResize) return; var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; if (PopUp == null) return; if (PopUp.style.visibility=="hidden") return; var PopUpF=document.getElementById? document.getElementById("PopUpDFrame"): document.all.PopUpDFrame; if (PopUpF == null) return; var Wid=0; var Hei=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; var w=Wid-50; var h=Hei-50; if ((PopUpD_Max_W>0)&&(w > PopUpD_Max_W)) w=PopUpD_Max_W; if ((PopUpD_Max_H>0)&&(h > PopUpD_Max_H)) h=PopUpD_Max_H; PopUp.style.width=w; PopUp.style.height=h; PopUpF.style.width=w; PopUpF.style.height=h; } function UserScrolling() { var PopUp=document.getElementById? document.getElementById("PopUpD"): document.all.PopUpD; if (PopUp==null) return; if (PopUp.style.visibility!="visible") return; var Wid=0; var Hei=0; var ScrollTop=0; var ScrollLeft=0; var AgntUsr=navigator.userAgent.toLowerCase(); var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0; Wid=ExpYes?document.body.offsetWidth:window.innerWidth; Hei=ExpYes?document.body.offsetHeight:window.innerHeight; ScrollTop=ExpYes?document.body.scrollTop:window.pageYOffset; ScrollLeft=ExpYes?document.body.scrollLeft:window.pageXOffset; var LeftPosition = ((Wid) ? (Wid-MyparseInt(PopUp.style.width))/2 : 0) + ScrollLeft; var TopPosition = ((Hei) ? (Hei-MyparseInt(PopUp.style.height))/2 : 0) + ScrollTop; PopUp.style.top=TopPosition; PopUp.style.left=LeftPosition; } window.onscroll=UserScrolling; window.onresize=UserResize;