/**
This js file is used for one task in Login/LogIn.aspx, LogIn/NewUser.aspx, and UserProfile/NewUserUpdate.aspx.  It is highly likely that it
will eventually be used for UserProfile/Update.aspx when that gets implemented.

This file is where the javascript functions are found to set the borders for the input fields to the red color when they have focus, and to set the
previously active boxes border back to the normal when it is not focused.

In order for this to work, the files mentioned above must reference a stylesheet with style classes "inputBoxActive" and "inputBoxInactive" in them.
*/

curFocus= -1;
function setFocus(idName)
{
	
	if(idName===-1)
		return;
	//document.getElementById(idName).class="inputBoxInactive";
	document.getElementById(idName).className='inputBoxActive';
	
}
function killFocus(idName)
{
	
	if(idName===-1)
		return;
	
		
		//document.getElementById(idName).class="inputBoxInactive";
		document.getElementById(idName).className='inputBoxInactive';
	
}
function handleFocus(idName)
{

	if(!(idName===curFocus))
	{
		setFocus(idName);
		killFocus(curFocus);
		curFocus=idName;
	}
	else
		return;
}