function valid_mail(co) {
	return (/^[\w\.-]{2,}@[\w\.-]+\.[a-z]{2,5}$/i.test(co));
}
function valid_pass (co) {
	return (/\w/.test(co)&&(co.length>=4));
}

function onColor(co,jaki)
{
	co.style.backgroundColor=jaki;
}

function offColor(co,jaki)
{
	co.style.backgroundColor=jaki;
}

function flash(id, kolor, czas, kolor2, czas2)
{
	//document.getElementById(id).style.backgroundColor = kolor;
	document.getElementById(id).style.borderColor = kolor;
	setTimeout('flash("' + id + '","' + kolor2 + '",' + czas2 + ',"' + kolor + '",' + czas + ')', czas);
}
