

function clearIt(theText){
	if (theText.value == theText.defaultValue){
		theText.value = ""
	}
}


function replacetext(theText){
	if (theText.value == ""){
		theText.value = "Enter Email Here!"
	}
}


function replacetext2(theText){
	if (theText.value == ""){
		theText.value = "Enter Promo Code"
	}
}


function validateEmail(src) {
	emailReg = "^[\\w-_\.]*[\\w-_\.]\@[\\w]\.+[\\w]+[a-zA-Z]$"
	var regex = new RegExp(emailReg);
	if(regex.test(src) == false){
		alert('Please enter a valid email address and try again!');
		document.frmEmailList2.txtEmail.value = ""
		document.frmEmailList2.txtEmail.focus();
		return false;
		}
	return regex.test(src);
	}


function changePic (objName,picName) {
	objName.src = picName;
}

function changeLink(objName,linkName)
{
        document.getElementById(objName).href=linkName;
}



function showDiv(id) {
	element	= document.getElementById(id);
	
	if (element)
		element.style.display	= "block";
}

function hideDiv(id) {
	element	= document.getElementById(id);
	
	if (element)
		element.style.display	= "none";
}
