// Moves cursor from one field to the next when max length is reached.

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

// Parses phone number together from separate auto-tabbing fields.

function phonestitch() {
	var phonetotal = document.getElementById('phone1').value + '-' + document.getElementById('phone2').value + '-' + document.getElementById('phone3').value;
		document.getElementById('phone').value = phonetotal;
}
