// JavaScript Document

function reqfoc(frmel){
	if(frmel.value=='Required'){
	frmel.value='';
	frmel.style.fontStyle = "normal";
	frmel.style.color = "#000";
	}
}	

function reqblur(frmel){	
	if(frmel.value==''){
	frmel.value='Required'
	frmel.style.fontStyle = "italic";
	frmel.style.color = "#999";
	}
}

function copyEmail(formElement){

	theForm = formElement.form;
	
	if(formElement.value.indexOf("@")==-1){
	var newUsername = formElement.value.toLowerCase();	
	theForm.username.style.fontStyle = "normal";
	theForm.username.style.color = "#000";
	}
	else{
	list = formElement.value.split("@");
	var newUsername = list[0];
	}
	theForm.username.value = newUsername.replace(".","_").toLowerCase();
}
