
function clearDefaultText(e, text) {
	if (e.value == text) {
        e.value = '';
    }
}

function replaceDefaultText(e, text) {
    if (e.value == '') {
        e.value = text;
    }
}

function clearDefaultPass(e, text) {
	if (e.value == text) {
        e.style.display = 'none';
		var a = document.getElementById(e.id.substr(0,e.id.length - 2));
		a.style.display = 'block';
		a.value = '';
		a.focus();
    }
}

function replaceDefaultPass(e, text) {
    if (e.value == '') {
        e.style.display = 'none';
		var a = document.getElementById(e.id + '_1');
		a.style.display = 'block';
		a.value = text;
        a.style.color='gray';
    }
}

