function goSearch() { /*getVars = getUrlVars(); // PREPARE REDIRECTION URL var urlStr = "/"+document.look4.userSearch.value+"?"; if (getVars["abc"] && getVars["abc"]!="") urlStr+="&abc="+getVars["abc"]; if (getVars["def"] && getVars["def"]!="") urlStr+="&def="+getVars["def"]; window.location.href=urlStr; //getUser(str,userName); */ var searchId = document.getElementById('searchId').value; var userName = document.getElementById('userSearch').value; //alert(searchId+" :: "+userName); if(searchId==undefined || searchId==""){ //alert("query for user "+userName); var ajaxIndex = ajaxObjects.length; var url = "flash_hooks/getUserId.php?username="+userName; ajaxObjects[ajaxIndex] = new sack(); ajaxObjects[ajaxIndex].requestFile = url; ajaxObjects[ajaxIndex].onCompletion = function() { //alert(ajaxObjects[ajaxIndex].response); searchId=(ajaxObjects[ajaxIndex].response); //if(searchId==""){ // alert("No user with that name found..."); //} else { document.getElementById('searchId').value = ""; getUser(searchId,userName); //} } ; ajaxObjects[ajaxIndex].runAJAX(); } else { document.getElementById('searchId').value = ""; getUser(searchId,userName); } } function searchFocus() { if (document.look4.userSearch.value=="Username") document.look4.userSearch.value=""; } function searchBlur() { if (document.look4.userSearch.value=="") document.look4.userSearch.value="Username"; } function getUrlVars() { var getVars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for(var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); getVars.push(hash[0]); getVars[hash[0]] = hash[1]; } return getVars; } function pageView(str,prop){ var myPageName='asm/nextOrNot/'+str; if (prop){ dispatcher.setAttribute('prop1',prop); //alert ("set prop " + prop); } dispatcher.setAttribute('pageName',myPageName); dispatcher.sendCall(); } function rollAds(){ document.getElementById('ad_frame').src=document.getElementById('ad_frame').src; document.getElementById('top_ad_frame').src=document.getElementById('top_ad_frame').src; } function doritos_ajaxFunction() { var xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { document.getElementById('registerReply').innerHTML=xmlHttp.responseText; document.getElementById('closeBT').style.display= 'none'; // alert("now!"); // document.getElementById('addnew').style.display="none"; closeBox(); } } url="flash_hooks/doritosset.php?"; url+="flavor="+document.doritos.flavor.value; //url+="&wanttv="+document.doritos.wanttv.value; url+="&myname="+document.doritos.myname.value; url+="&gender="+document.doritos.gender.value; url+="&birth="+document.doritos.birth.value; url+="&phone="+document.doritos.phone.value; url+="&email="+document.doritos.email.value; url+="&street="+document.doritos.street.value; url+="&city="+document.doritos.city.value; url+="&state="+document.doritos.state.value; url+="&zip="+document.doritos.zip.value; url+="&moreinfo="+document.doritos.moreinfo.value; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function change_ad() { document.getElementById("ad_frame").src="incl/ad.html"; } function open_widget(ID){ var fullpath='http://'+location.hostname+'/'; var BOX_CODE = "
 
"+ "
"+ ""+ "
"+ ""+ "
"+ "
LOADING...
"+ "
"+ "
"+ ""+ "
"; document.getElementById("addnew").innerHTML= BOX_CODE; document.getElementById('addnew').style.display="block"; // loadintobox('/incl/widget.php?ID='+ID); var so = new SWFObject('http://www.yourminis.com/Dir/GetContainer.api?uri=yourminis/mtv/mini:nextornot2', 'thickCont', '380', '360','nocache=1205169290063','8'); so.addParam('wmode', 'transparent'); so.addParam('allowScriptAccess','always'); so.addVariable('height',330); so.addVariable('width',380); so.addVariable('view','minimal'); so.addVariable('xheight',330); so.addVariable('xwidth',380); so.addVariable('userid',ID); so.addVariable('uri','yourminis%2Fmtv%2Fmini%3Anextornot2'); so.addVariable('playerver','WIN%209%2C0%2C115%2C0'); so.addVariable('majorver',9); so.useExpressInstall('http://ct.yourminis.com/swfs/expressinstall.swf'); so.write('thickCont'); } function open_badge(userID){ var fullpath='http://'+location.hostname+'/'; pageView(userID+'Badge'); var BOX_CODE = "
 
"+ "
"+ ""+ "
"+ ""+ "
"+ "
LOADING...
"+ "
"+ "
"+ "Copy and paste the code below to embed the badge anywhere:
"+ "
"+ "
"+ ""+ "
"; document.getElementById("addnew").innerHTML= BOX_CODE; document.getElementById('addnew').style.display="block"; // loadintobox('/incl/widget.php?ID='+ID); var so = new SWFObject('http://www.nextornot.com/fla/badgeVideo_2008_06_16.swf', 'thickCont', '500', '375','nocache=1205169290063','8'); so.addParam('wmode', 'transparent'); so.addParam('allowScriptAccess','always'); so.addVariable('height',375); so.addVariable('width',500); so.addVariable('userid',userID); so.addVariable('_PATH','/'); so.useExpressInstall('http://ct.yourminis.com/swfs/expressinstall.swf'); so.write('thickCont'); } function open_vidComment(targetID,sourceID,token) { pageView(sourceID+'_Vidcomment'+targetID); var fullpath='http://'+location.hostname+'/'; window.open(fullpath+"webCam/public/recorder.php?targetID="+targetID+"&sourceID="+sourceID+"&token="+token,"webcam","width=340, height=355"); } function writeMailBox(userid,code){ if (userid==0 && code==0){ document.getElementById('MailBox').innerHTML=''; document.getElementById('Widget').style.display='block'; return; } document.getElementById('Widget').style.display='none'; //if (AC_FL_RunContent == 0 || DetectFlashVer == 0) { // alert("This page requires AC_RunActiveContent.js."); //} else { var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); if(hasRightVersion) { var mailSWF = new SWFObject('/fla/mailbox_2008_08_24.swf', 'flash_mailbox', '320', '330','','9'); mailSWF.addParam('wmode', 'transparent'); mailSWF.addParam('quality', 'high'); mailSWF.addParam('align', 'middle'); mailSWF.addParam('menu', 'false'); mailSWF.addParam('allowFullScreen', 'false'); mailSWF.addParam('allowScriptAccess','sameDomain'); mailSWF.addVariable('_PATH','/'); mailSWF.addVariable('abc',userid); mailSWF.addVariable('def',code); mailSWF.write('MailBox'); } else { // flash is too old or we can't detect the plugin //var alternateContent = 'Flash Player 9 is required. Please click here to download it now'; var alternateContent = 'hello'; document.getElementById('MailBox').innerHTML = 'Flash Player 9 is required. Please click here to download it now'; // insert non-flash content } //} } function fshare(permalink) { var communityUcid = 'DAF8FFFF00995D0D0002FFFFF8DA'; // permalink='nextornot.com:users:profile:'+permalink; permalink='nextornot.com:'+permalink; var url = "http://www.flux.com/Share/DiscoverContent.aspx?community_ucid=" + communityUcid + "&permalink=" + encodeURIComponent(permalink) ; var windowName = null; var windowAttributes = "height=452,width=520,status=yes,toolbar=no,menubar=no,location=no"; window.open(url, windowName, windowAttributes ); } function thisMovie(movieName) { var isIE = navigator.appName.indexOf("Microsoft") != -1; var nAgt = navigator.userAgent; var majorVersion = 0; var fullVersion = 0; if ((verOffset=nAgt.indexOf("MSIE"))!=-1) { fullVersion = parseFloat(nAgt.substring(verOffset+5)); majorVersion = parseInt(''+fullVersion); } if (isIE){ if (majorVersion>=6) return document[movieName]; return window[movieName]; } return document[movieName]; } function getUser(str,userName) { if (str=='undefined') return; thisMovie("mainSWF").forceGetUser(str,userName); window.location.hash="NextOrNot"; } function userloggedin(userid,usercode) { loadintonamedbox("loginPlace","incl/loginindex.php?ajax=yes"); //loadintonamedbox("statDiv","flash_hooks/mystats.php?print=yes"); writeMailBox(userid,usercode); thisMovie("howToPlay").showMyStats(userid,usercode); } function userloggedout(id,code) { if (location.href.search('trickout')!=-1) { location.replace(''); } loadintonamedbox("loginPlace","incl/loginindex.php?ajax=yes"); // loadintonamedbox("statDiv","flash_hooks/mystats.php?print=yes"); thisMovie("howToPlay").showHowToPlay(); writeMailBox(0,0); thisMovie("mainSWF").hideMailAlert(); } function openRegisterWindow(){ loadintobox('/flash_hooks/registerForm.php'); } function notifyMailComponent(){ thisMovie("flash_mailbox").refreshMailBox(); }