function showHide(show,element) {
	var element = document.getElementById(element);
	if (show) {
		element.style.display = '';
	}
	else {
		element.style.display = 'none';
	}
}

function UpdateFullName() 
{
	var txtFirstName = document.getElementById('fname');
	var txtLastName = document.getElementById('lname');
	var txtMiddleName = document.getElementById('mname');
	var txtFullName = document.getElementById('legal_full_name');
	
	var fullName = txtFirstName.value;
	if (txtFirstName.value.length>0)
	{
		fullName += ' ';
	}
	
	fullName += txtMiddleName.value;
	
	if (txtMiddleName.value.length>0)
	{
		fullName += ' ';
	}
		
	fullName += txtLastName.value;
	
	txtFullName.value = fullName;
}	

function show_help() {
	showHide(true,'help_callout');
}
function hide_help() {
	showHide(false,'help_callout');
}

function show_anotherFriend() {
	showHide(true,'friendForm2');
}
function hide_anotherFriend() {
	showHide(false,'friendForm2');
}


function autotab(original,destination){
if (original.getAttribute&&original.value.length==original.getAttribute("maxlength"))
destination.focus();
}




