function  swapContent()
{
	var oldHTML = "";
	var newHTML = "";
	this.swapOut = swapOut;
	this.swapBack = swapBack;
	this.setContent = setContent;
	function swapOut(id)
	{
		this.oldHTML = document.getElementById(id).innerHTML;
		document.getElementById(id).innerHTML = this.newHTML;
	}
	function swapBack(id)
	{
		document.getElementById(id).innerHTML = this.oldHTML;	
	}
	function setContent(content)
	{
		this.newHTML = content;
	}
}
var forgotSwap = new swapContent();
function forgotPass(action)
{
	if(action == 'swapOut')	
	{
		forgotSwap.setContent("<form method='post' action='/login/forgotPassword/Default.asp' onsubmit='return ajax_forgotPass()'><div class='leftTitle' >Forgot Password</div><div id='filler'></div><div><p>If you forgot your password, enter your email address in the form below to have it mailed to you.</p><label for='forgotPassEmail'>Email<br></label><input type='text' name='forgotPassEmail' id='forgotPassEmail'><input type='submit' name='forgotPassSubmit' value='Submit' id='forgotPassSubmit'><input type='button' name='forgotPassCancel' value='Cancel' id='forgotPassCancel' onClick = \"forgotPass('swapback')\"><br></div></form>");
		forgotSwap.swapOut('loginbox');
	}
	if(action == "swapback")
	{
		forgotSwap.swapBack('loginbox');
	}
	return false;
}





