function logon(that) {
var name = new String(that.Username.value);
var gilty = new RegExp("@mne.ru$", "i");
	if (name.search(gilty) == -1) { that.Username.value = name + "@mne.ru"; }
}

function secure (that) {
	if (that.style.backgroundImage=="url(http://mne.ru/img/securedx.gif)") { 
		that.style.backgroundImage="url(http://mne.ru/img/e.gif)";
		document.login.securests.value="http";
	}
	else {
		that.style.backgroundImage="url(http://mne.ru/img/securedx.gif)";
		document.login.securests.value="https";
	}
	document.login.action=document.login.securests.value+"://mail.mne.ru/";
}


