
function check_filled (id)
{
	/*var element_value = document.forms['form1'].element.value;
	alert("AAAAAAA15/06/2007");
	var element_length = element_value.length;
	alert("Re");*/
	var element = document.getElementById(id);
	if (element.value != "")
	{
		null;
	}
	else
	{
		text = (text + "Please fill in the following field: " + id + ". \n" );
		correct = "Error";
		return false;
	}
}

	var text = "";
	var correct = "Correct";

function check_submit ()
{
	check_filled("username");
	check_filled("password");
	if (correct == "Correct")
	{
		return true;
	}
	else
	{
		alert(text);
		text = "";
		correct = "Correct";
		return false;
	}
}


function change_background(id)
{
	document.getElementById(id).style.background="#C0EAA6";
}

function reset_background(id)
{
	document.getElementById(id).style.background="#FBFAE9";
}

function over_submit(id)
{
	document.getElementById(id).style.border="2px inset";
}

function out_submit(id)
{
	document.getElementById(id).style.border="2px outset";
}