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 = "
"+
"
"+
"
"+
"
';
var alternateContent = 'hello';
document.getElementById('MailBox').innerHTML = '
'; // 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();
}
"+
"
"+
"
"+
"