var holdHTML = '';var holdHTML2 = '';var myInterval = '';var processMove = false;nH = 0;times = 0;function processing(tar,dir){	var usr = document.getElementById('usr').value;	var pas = document.getElementById('pas').value;	if (usr != '' && pas != ''){		if (document.getElementById('remMe').checked == true){			var remMe = 1;		}else{			var remMe = '';		}		window.location = "check.php?u="+usr+"&p="+pas+"&remMe="+remMe;	}else{		document.getElementById('msg').innerHTML = "<div style='color:red;'>You must fill in your username and password.</div>"+holdHTML;	}}function procDiv(tar,dir){	if (dir == 'h'){		document.getElementById(tar).style.display = 'none';		document.getElementById('processing').style.display = 'compact';	}else{		document.getElementById(tar).style.display = 'block';		document.getElementById('processing').style.display = 'none';	}}function startMove(tar,h){	if (!h){		if(document.getElementById){			h = document.getElementById('details'+tar).offsetHeight;		}else if (document.layers){			h = document.layers['details'+tar].clip.height;		}		h += 70;	}	if (processMove == false){		myInterval = window.setInterval("changeHeight('"+tar+"','"+h+"')", 40);		processMove = true;	}}function changeHeight(tar,h){	// GET TARGET CURRENT HEIGHT //	curH = document.getElementById('forgot').style.height;	curH = parseFloat(curH);	// HIDE THE TARGET'S CONTENTS IS SHRINKING //	if (h < 51){		document.getElementById('forgotWrapper').style.overflow = 'hidden';	}else{		document.getElementById('forgotWrapper').style.visibility = 'visible';	}	if (Math.round(curH) != h){		dif = h-curH;		mov = dif/5;		if (nH != curH+mov){ nH = curH+mov; times = 0; }else{ times = times+1; }		if (times > 8){			changeTo = h+"px";		}else{			changeTo = curH+mov+"px";		}		document.getElementById('forgot').style.height = changeTo;	}else{		//document.getElementById('status').innerHTML += '<br>In clean up.';		window.clearInterval(myInterval);		processMove = false;		/*if (h > 50){			document.getElementById('showHide'+tar).innerHTML = "<a href=\"javascript:startMove('"+tar+"',50);\">[Hide Details]</a>";		}else{			document.getElementById('showHide'+tar).innerHTML = "<a href=\"javascript:startMove('"+tar+"');\">[Show Details]</a>";		}*/	}}function loggedIn(msg){	document.getElementById('login').innerHTML = "<p>"+msg+"</p>";}//forgot password var forgotPass = false;try {  forgotPass = new XMLHttpRequest();} catch (trymicrosoft) {  try {    forgotPass = new ActiveXObject("Msxml2.XMLHTTP");  } catch (othermicrosoft) {    try {      forgotPass = new ActiveXObject("Microsoft.XMLHTTP");    } catch (failed) {      forgotPass = false;    }  }}if (!forgotPass)  alert("Error initializing XMLHttpRequest! You must upgrade your browser.");  function getPass(){	holdHTML2 = document.getElementById('forgotMsg').innerHTML;	var email1 = document.getElementById('email1').value;	var email2 = document.getElementById('email2').value;	if (email1 != email2){		startMove('forgot', 250);		document.getElementById('forgot').innerHTML = "<p style='color:red;margin:2px;'>Emails don't match.</p>" + holdHTML2;		return;	}else{		document.getElementById('forgotWrapper').style.visibility = 'hidden';		data = "email="+email1;		forgotPass.open('POST','functions/getpass.php', true);		forgotPass.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");           		forgotPass.send(data);		forgotPass.onreadystatechange  = function(){ 			 if(forgotPass.readyState  == 4){				  if(forgotPass.status  == 200){ 					 	if (forgotPass.responseText == 1){							startMove('forgot', 100);							document.getElementById('forgotMsg').innerHTML = "<p>Instructions for resetting your password have been sent to your email address.</p>"+forgotPass.responseText;						}else if (forgotPass.responseText == 0){							startMove('forgot', 320);							document.getElementById('forgotMsg').innerHTML = "<p style='color:red'>The email you provided was not in the database.</p>";						}else{							startMove('forgot', 250);							document.getElementById('forgotMsg').innerHTML = "<p style='color:red'>There was an error with the function, please contact technical support.</p>";						}				  }else{				  	alert("Error code " + forgotPass.status);				  }			 }		}	}}