var ajaxObjects = new Array(); function verifyEmail(){ theItem = document.emailVer['email'] theValue = theItem.value; saveString = "email="+theValue+"&jkl="+document.emailVer['jkl'].value; var ajaxIndex = ajaxObjects.length; ajaxObjects[ajaxIndex] = new sack(); var url = 'flash_hooks/reactivate.php?'+saveString; ajaxObjects[ajaxIndex].requestFile = url; ajaxObjects[ajaxIndex].onCompletion = function(response) { ajaxCompleted=true; response_arr=response.split("||"); if(response_arr.length>1){ switch (response_arr[0]){ case "register_success": document.getElementById("registerReply").innerHTML= response_arr[1]; break; case "register_fail": document.getElementById("registerReply").innerHTML= response_arr[1]; break; default: document.getElementById("registerReply").innerHTML= response; break; } }else{ op = response; document.getElementById("registerReply").innerHTML= op; } } ajaxObjects[ajaxIndex].runAJAX(); } function saveInput(ID,itemName,lang,type){ theItem = document.forgot[itemName]; theValue = theItem.value; saveString = "email="+theValue; var ajaxIndex = ajaxObjects.length; ajaxObjects[ajaxIndex] = new sack(); var url = 'flash_hooks/forgotmypassword.php?'+saveString; ajaxObjects[ajaxIndex].requestFile = url; ajaxObjects[ajaxIndex].onCompletion = function(response) { //alert(response); if (response=="close"){ closeBox(); }else{ document.getElementById("registerReply").innerHTML= response; } } ; ajaxObjects[ajaxIndex].runAJAX(); } function saveDoritos(ID,itemName1,itemName2,itemName3,itemName4){ theItem1 = document.doritos[itemName1]; theItem2 = document.doritos[itemName2]; theItem3 = document.doritos[itemName3]; theItem4 = document.doritos[itemName4]; theValue1 = theItem1.value; theValue2 = theItem2.value; theValue3 = theItem3.value; theValue4 = theItem4.value; saveString = "wanttv="+theValue1+"&flavor="+theValue2+"&id="+theValue3+"&code="+theValue4; var ajaxIndex = ajaxObjects.length; ajaxObjects[ajaxIndex] = new sack(); var url = 'flash_hooks/doritosset.php?'+saveString; ajaxObjects[ajaxIndex].requestFile = url; ajaxObjects[ajaxIndex].onCompletion = function(response) { //alert(response); if (response=="close"){ closeBox(); }else{ document.getElementById("registerReply").innerHTML= response; } } ; ajaxObjects[ajaxIndex].runAJAX(); } function saveInput_CHPASS(ID,itemName1,itemName2,itemName3,itemName4,lang,type){ theItem1 = document.changepass[itemName1]; theItem2 = document.changepass[itemName2]; theItem3 = document.changepass[itemName3]; theItem4 = document.changepass[itemName4]; theValue1 = theItem1.value; theValue2 = theItem2.value; theValue3 = theItem3.value; theValue4 = theItem4.value; saveString = "old="+theValue1+"&new1="+theValue2+"&new2="+theValue3+"&userid="+theValue4; var ajaxIndex = ajaxObjects.length; ajaxObjects[ajaxIndex] = new sack(); var url = 'flash_hooks/changepassword.php?'+saveString; ajaxObjects[ajaxIndex].requestFile = url; ajaxObjects[ajaxIndex].onCompletion = function(response) { //alert(response); if (response=="close"){ closeBox(); }else{ document.getElementById("registerReply").innerHTML= response; } } ; ajaxObjects[ajaxIndex].runAJAX(); } var ajaxObjects2 = new Array(); var ajaxCompleted = true; function saveInput2(ID,itemName1,itemName2,itemName3,itemName4,itemName5,itemName6,itemName7,itemName8,itemName9,itemName10,itemName11,itemName12,itemName13,lang,type){ if (ajaxCompleted==false) return; theItem1 = document.register[itemName1]; theItem2 = document.register[itemName2]; theItem3 = document.register[itemName3]; theItem4 = document.register[itemName4]; theItem5 = document.register[itemName5]; theItem6 = document.register[itemName6]; theItem7 = document.register[itemName7]; theItem8 = document.register[itemName8]; theItem9 = document.register[itemName9]; theItem10 = document.register[itemName10]; theItem11 = document.register[itemName11]; theItem12 = document.register[itemName12]; theItem13 = document.register[itemName13]; theValue1 = theItem1.value; theValue2 = theItem2.value; theValue3 = theItem3.value; theValue4 = theItem4.value; theValue5 = theItem5.value; theValue6 = theItem6.value; theValue7 = theItem7.value; theValue8 = theItem8.value; theValue9 = theItem9.value; theValue10 = theItem10.value; theValue11 = theItem11.checked; theValue12 = theItem12.value; theValue13 = theItem13.value; saveString = "email="+theValue1+"&username="+theValue2+"&first="+theValue3+"&last="+theValue4+"&gender="+theValue5+"&password="+theValue6+"&password2="+theValue7+"&d="+theValue8+"&m="+theValue9+"&y="+theValue10+"&agree="+theValue11+"&private_key="+theValue12+"&public_key="+theValue13; var ajaxIndex = ajaxObjects2.length; ajaxObjects2[ajaxIndex] = new sack(); var url = 'flash_hooks/register.php?'+saveString; ajaxObjects2[ajaxIndex].requestFile = url; ajaxObjects2[ajaxIndex].onCompletion = function(response) { ajaxCompleted=true; response_arr=response.split("||"); if(response_arr.length>1){ switch (response_arr[0]){ case "register_success": document.getElementById("registerFormDiv").style.display='none'; document.getElementById("registerReply").innerHTML= response_arr[1]; //window.location='http://www.nextornot.com'; break; case "register_fail": document.getElementById("registerReply").innerHTML= response_arr[1]; loadCaptcha(); break; default: document.getElementById("registerReply").innerHTML= "system failure"; loadCaptcha(); break } }else{ op = response; document.getElementById("registerReply").innerHTML= op; loadCaptcha(); } } ajaxObjects2[ajaxIndex].runAJAX(); ajaxCompleted = false; } function toggle_add(){ if (document.getElementById('addnew').style.display=="block") document.getElementById('addnew').style.display="none"; else document.getElementById('addnew').style.display="block"; } function getStaticPage(N){ URL ="statics.php?id="+N+""; loadintobox(URL); } function closeBox(){ //alert("in closeBox"); // document.getElementById("Filter").style.display="block"; document.getElementById("addnew").style.display="none"; } function writeBox(){ var BOX_CODE = "