/* This script affects the textedit boxes in the form in the left sidebar. When then user clicks into the textedit the initial text will disappear and a different class will be applied to the text. When the user clicks out the reverse happens. THIS SCRIPT NEES CORE.JS TO WORK */

function userin()
{
var uin = document.getElementById("username");

	if (uin.value == "Email Address") 
		{
		uin.value = "";
		Core.addClass(uin, "infocus");
		}
	
}

function userout()
{
var uout = document.getElementById("username");

	if (uout.value == "") 
		{
		uout.value = "Email Address";
		Core.removeClass(uout, "infocus");
		Core.addClass(uout, "outfocus");
		}
	
}

function passin()
{
var pin = document.getElementById("password");

	if (pin.value == "Password") 
		{
		pin.value = "";
		pin.type = "password";
		Core.addClass(pin, "infocus");
		}
	
}

function passout()
{
var pout = document.getElementById("password");

	if (pout.value == "") 
		{
		pout.type = "text";
		pout.value = "Password";
		Core.removeClass(pout, "infocus");
		Core.addClass(pout, "outfocus");
		}
	
}
