function comparePassword()
{
    var pass1 = document.getElementById('pass1');
    var pass2 = document.getElementById('pass2');
   
    if(pass1.value.length > 0 && pass2.value.length >= 0)
	{
		if(pass1.value != pass2.value)
		{
			document.getElementById('matchpass').innerHTML = "Passwords do not match!";
		}
		else
		{
			document.getElementById('matchpass').innerHTML = "";
		}
	}
	else
	{
		document.getElementById('matchpass').innerHTML = "";
	}
}

function compareEmail()
{
	var email1 = document.getElementById('email1');
	var email2 = document.getElementById('email2');
	
	if(email1.value.length > 0 && email2.value.length >= 0)
	{
		if(email1.value != email2.value)
		{
			document.getElementById('matchemail').innerHTML = "Emails do not match!";
		}
		else
		{
			document.getElementById('matchemail').innerHTML = "";
		}
	}
	else
	{
		document.getElementById('matchemail').innerHTML = "";
	}
}

function setFooter() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' )
	{
		//Non-IE
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
	{
		//IE 6+ in 'standards compliant mode'
		myHeight = document.documentElement.clientHeight;
	} 
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
	{
		//IE 4 compatible
		myHeight = document.body.clientHeight;
	}
	var bodyHeight = document.getElementById('body').offsetHeight;
	if (bodyHeight < myHeight)
	{
		testHeight = myHeight - bodyHeight;
		if (testHeight <= 33)
		{
			newHeight = myHeight + 28;
		}
		else
		{
			footerHeight = document.getElementById('footer').offsetHeight;
			newHeight = myHeight - 48;
		}
		document.getElementById('footer').style.top = newHeight + "px";
	}
	else
	{
		document.getElementById('footer').style.top = bodyHeight + "px";
	}
}
