var joinmin = 0;var joinmax = 1;var joinx = 0;var load = 1;var tos = 0;var obj;var objx;var objy;var objfw;var objw;var objh;var objmx;var objmy;var objxb;var objminb;var objmaxb;function loadForm(){load = 1;tos = 0;url = "ajax/join.php?load=1";xmlHttp = getXmlHttp();xmlHttp.open("GET", url, true);xmlHttp.onreadystatechange = StateChanged;xmlHttp.send(null); }function displayForm(form){email = encodeURIComponent(form.emailtext.value);password = encodeURIComponent(form.password.value);name = encodeURIComponent(form.nametext.value);if(form.genderradio[0].checked)gender = "M";else if(form.genderradio[1].checked)gender = "F";else gender = "";country = form.countryselect.value;month = form.monthselect.value;day = form.dayselect.value;year = form.yearselect.value;code = encodeURIComponent(form.codetext.value);if(load == 1){finalx = objx;finaly = objy;}url = "ajax/join.php?email=" + email + "&name=" + name + "&password=" + password + "&gender=" + gender + "&country=" + country + "&month=" + month + "&day=" + day + "&year=" + year + "&code=" + code + "&finalx=" + finalx + "&finaly=" + finaly;xmlHttp = getXmlHttp();xmlHttp.open("GET", url, true);xmlHttp.onreadystatechange = StateChanged;xmlHttp.send(null); }function StateChanged(){if(xmlHttp.readyState == 1)document.getElementById("formprocess").innerHTML = "<div class='joinprocess'>Sending... </div><br/>";else if(xmlHttp.readyState == 2)document.getElementById("formprocess").innerHTML = "<div class='joinprocess'>Receiving... </div><br/>";else if(xmlHttp.readyState == 3)document.getElementById("formprocess").innerHTML = "<div class='joinprocess'>Loading... </div><br/>";else if(xmlHttp.readyState == 4){document.getElementById("formprocess").innerHTML = "";document.getElementById("displayform").innerHTML = xmlHttp.responseText;if(tos == 1)showTos();obj = document.getElementById("joinform");if(objx == undefined)objx = obj.offsetLeft;if(objy == undefined)objy = obj.offsetTop;if(objfw == undefined)objfw = obj.offsetWidth;objxb = document.getElementById("joinx");objminb = document.getElementById("joinmin");objmaxb = document.getElementById("joinmax");if(joinmin == 1){document.getElementById("joincontent").style.visibility = "hidden";document.getElementById("joincontent").style.display = "none";document.getElementById("joinformheading").style.borderBottom = "0";}}}function showTos(){tos = 1;term = "Terms Of Service\n\n";con = "1. Content\n\n";con += "For all the contents you uploaded or wrote, by uploading them, you are agreeing to grant us rights to use, display and transform them for any purpose advertising, promotion, commercial or otherwise in connection with this Site. You may remove or change your uploaded contents at any time in your account. Certain contents that involve interactions with other members like messages you sent to other members cannot be manually deleted. To delete them you have to delete your account. Should you delete your account, you are agreeing that we may keep some of your data in our records which will not be shown in public. We may at anytime crop, trim or remove any contents you uploaded on the ground that it does not conform to our policy. We do not own your uploaded contents and all the contents you uploaded are protected by their respective copyright laws.\n\n";acc = "2. Account\n\n";acc += "Opening an Ozucs account is free. Ozucs grants you total rights and control over the opening and closing of your account. Maintaining an account in Ozucs requires you to comply with our terms of service and policy. We may close your account if you fail to do so. In all circumstances, Ozucs makes no guarantee that your account will always be open.\n\n";term += con + acc;document.getElementById("tos").innerHTML = "<textarea class='jointos' cols='35' rows='8' readonly='readonly'>" + term + "</textarea><div class='noticeclosebutton'><img src='min.bmp' onclick='closeTos()' /></div><br/>";}function closeForm(){document.getElementById("displayform").innerHTML = "<a href='#' onclick='loadForm()' style='color:blue;position:absolute;left:270px;top:10px'>Open an account now!</a>";joinmin = 0;joinmax = 0;joinx = 1;}function minimiseForm(){document.getElementById("joincontent").style.visibility = "hidden";document.getElementById("joincontent").style.display = "none";document.getElementById("joinformheading").style.borderBottom = "0";if(joinmin == 0){objmx = obj.offsetLeft;objmy = obj.offsetTop;obj.style.left = objx + "px";obj.style.top = objy + "px";obj.style.width = "150px";}joinmin = 1;joinmax = 0;joinx = 0;}function maximiseForm(){document.getElementById("joincontent").style.visibility = "visible";document.getElementById("joincontent").style.display = "block";document.getElementById("joinformheading").style.borderBottom = "1px solid gray";if(joinmax == 0){obj.style.left = objmx + "px";obj.style.top = objmy + "px";obj.style.width = objfw;}joinmin = 0;joinmax = 1;joinx = 0;}function closeTos(){tos = 0;document.getElementById("tos").innerHTML = "";}function closeNotice(){document.getElementById("joinnotice").innerHTML = "";}function showJoinEmail(){help = "<div class='joinhelp'><div class='helpheading'>Join Ozucs help</div><div class='closebutton'><img src='x.bmp' /></div><br/>Enter your most popular email. You cannot change it later.</div>";document.getElementById("joinhelp").innerHTML = help;}function hideJoinEmail(){document.getElementById("joinhelp").innerHTML = "";}function showJoinPassword(){help = "<div class='joinhelp'><div class='helpheading'>Join Ozucs help</div><div class='closebutton'><img src='x.bmp' /></div><br/>Choose a password with at least 6 characters. You may enter spaces and special characters.</div>";document.getElementById("joinhelp").innerHTML = help;}function hideJoinPassword(){document.getElementById("joinhelp").innerHTML = "";}function showJoinName(){help = "<div class='joinhelp'><div class='helpheading'>Join Ozucs help</div><div class='closebutton'><img src='x.bmp' /></div><br/>Enter your full name. You may include spaces and apostrophes in your full name.</div>";document.getElementById("joinhelp").innerHTML = help;}function hideJoinName(){document.getElementById("joinhelp").innerHTML = "";}function showJoinGender(){help = "<div class='joinhelp'><div class='helpheading'>Join Ozucs help</div><div class='closebutton'><img src='x.bmp' /></div><br/>Your sex upon birth.</div>";document.getElementById("joinhelp").innerHTML = help;}function hideJoinGender(){document.getElementById("joinhelp").innerHTML = "";}function showJoinCountry(){help = "<div class='joinhelp'><div class='helpheading'>Join Ozucs help</div><div class='closebutton'><img src='x.bmp' /></div><br/>The country where you are now living in.</div>";document.getElementById("joinhelp").innerHTML = help;}function hideJoinCountry(){document.getElementById("joinhelp").innerHTML = "";}function showJoinMonth(){help = "<div class='joinhelp'><div class='helpheading'>Join Ozucs help</div><div class='closebutton'><img src='x.bmp' /></div><br/>Your birth month.</div>";document.getElementById("joinhelp").innerHTML = help;}function hideJoinMonth(){document.getElementById("joinhelp").innerHTML = "";}function showJoinDay(){help = "<div class='joinhelp'><div class='helpheading'>Join Ozucs help</div><div class='closebutton'><img src='x.bmp' /></div><br/>Your birth day.</div>";document.getElementById("joinhelp").innerHTML = help;}function hideJoinDay(){document.getElementById("joinhelp").innerHTML = "";}function showJoinYear(){help = "<div class='joinhelp'><div class='helpheading'>Join Ozucs help</div><div class='closebutton'><img src='x.bmp' /></div><br/>Your birth year.</div>";document.getElementById("joinhelp").innerHTML = help;}function hideJoinYear(){document.getElementById("joinhelp").innerHTML = "";}function showJoinVerification(){help = "<div class='joinhelp'><div class='helpheading'>Join Ozucs help</div><div class='closebutton'><img src='x.bmp' /></div><br/>There are only 3 digits in the image. Enter it into the verification box.</div>";document.getElementById("joinhelp").innerHTML = help;}function hideJoinVerification(){document.getElementById("joinhelp").innerHTML = "";}var btrue = 0;var initx;var inity;var finalx;var finaly;var frm;var frmx;var frmy;function buttonTrue(e){if(e == null)e = window.event;btrue = 1;}function moveForm(e){if(e == null)e = window.event;if(btrue == 0){disableSelection(document.body);load = 0;initx = e.clientX;inity = e.clientY;obj.zIndex = 3;objw = obj.offsetWidth;objh = obj.offsetHeight;frm = document.getElementById("joinframe");frm.style.visibility = "visible"; frm.style.position = "absolute";frm.style.border = "3px dotted gray";frm.style.width = objw;frm.style.height = objh;frmx = obj.offsetLeft;frmy = obj.offsetTop;frm.style.left = frmx + "px";frm.style.top = frmy + "px";frm.style.zIndex = 4;document.onmousemove = movingForm;document.onmouseup = dropForm;}btrue = 0;}function movingForm(e){if(e == null)e = window.event;frm.style.left = frmx + e.clientX - initx  + "px";frm.style.top = frmy + e.clientY - inity  + "px";if(frm.offsetLeft < 65 - frm.offsetWidth)frm.style.left = 65 - frm.offsetWidth + "px";if(frm.offsetTop < -20)frm.style.top = -20 + "px";document.onmouseup = dropForm;return false;}function dropForm(e){if(e == null)e = window.event;enableSelection(document.body);frm.style.visibility = "hidden";obj.style.left = int(frm.style.left) + "px";obj.style.top = int(frm.style.top) + "px";finalx = int(obj.style.left);finaly = int(obj.style.top);objmx = finalx;objmy = finaly;document.onmousemove = null;document.onmouseup = null;return false;}