function untextEmail(e){
	if(e.value == 'Email Address:'){
		e.value = '';
	}
}
function dotextEmail(e){
	if(e.value == ''){
		e.value = 'Email Address:';
	}
}

function untextPassword(e) {
    alert('in func');
    e.type = 'password';
    alert('type set');
    if (e.value == 'Password:') {
        e.value = '';
    }
}
function dotextPassword(e) {
    if (e.value == '') {
        e.type = 'text';
        e.value = 'Password:';
    }
}

function replacePassword(obj) {
    if (obj.value == '') {
        var newO = document.createElement('input');
        newO.setAttribute('type', 'text');
        newO.setAttribute('name', obj.getAttribute('name'));
        newO.setAttribute('onfocus', 'replaceT(this)');
        newO.value = 'Password:';
        obj.parentNode.replaceChild(newO, obj);
    }
}
function replaceT(obj) {
    var newO = document.createElement('input');
    newO.setAttribute('type', 'password');
    newO.setAttribute('name', obj.getAttribute('name'));
    newO.setAttribute('onblur', 'replacePassword(this)');
    obj.parentNode.replaceChild(newO, obj);
    newO.focus();
}

function dotextSearch(e) {
    if (e.value == '') {
        e.value = 'SEARCH:';
    }
}
function untextSearch(e) {
    if (e.value == 'SEARCH:') {
        e.value = '';
    }
}
/*
function validate(){
	var re = new RegExp("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))$");
	var isValid = re.test(document.getElementById('email').value);
	
	if(!isValid){
		alert('Please enter a valid email address');
		return false;
	}else{
		document.getElementById('subscribe').submit();
	}
}
*/
