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

function UpdateSSN() 
{
	var txtFirstNum = document.getElementById('ssn1');
	var txtSecondNum = document.getElementById('ssn2');
	var txtThirdNum = document.getElementById('ssn3');
	var txtFullSSN = document.getElementById('ssn');
	
	var fullSSN = txtFirstNum.value;
	if (txtFirstNum.value.length>0)
	{
		fullSSN += '-';
	}
	
	fullSSN += txtSecondNum.value;
	
	if (txtSecondNum.value.length>0)
	{
		fullSSN += '-';
	}
		
	fullSSN += txtThirdNum.value;
	
	txtFullSSN.value = fullSSN;
}	

//Auto tabbing script

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


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');
}


