function formatPhone(fieldObject){
	var num = fieldObject.value;
	if (num.length == 10) {
		var newNum;
		newNum = '(' + num.substring(0,3) + ')' + num.substring(3,6) + '-' + num.substring(6,10);
		fieldObject.value = newNum;
	} else if (num.length == 0) {
		return;
	} else {
		alert("Please enter a 10 digit number without punctuation or spaces.");
		fieldObject.focus();
		fieldObject.select();
	}
}
function answer() {
	alert("A security image is a visual representation of a number of random characters that can be easily read by humans, but is difficult for a computer program to interpret. By asking site visitors to enter into a separate input box the letters they see in the image, and compare the two, we are able to distinguish humans from machines.");
}
//function swapPic(img_src) {
//	document['mainImage'].src=img_src;
//}
//function updateOrient(orientation) {
//	document['mainImage'].className=orientation;
//}
//function swapOut() {
//	document['mainImage'].src=myMainImage;
//}
//function updateCaption(cap) {
//	myPara=document.getElementById("captionID");
//	myPara.removeChild(myPara.firstChild);
//	theText=document.createTextNode(cap);
//	myPara.appendChild(theText);
//}
//function setCaption(cap) {
//	var myBox=document.getElementById("fldCaption");
//	myBox.value = cap;
//}
//function updateTitle(form) {
//	var w = document.frmGallery.collections.selectedIndex;
//	var title = document.frmGallery.collections.options[w].text;
//	myPara=document.getElementById("titleID");
//	if (myPara.hasChildNodes()) {
//		myPara.removeChild(myPara.firstChild);
//	}
//	theText=document.createTextNode(title);
//	myPara.appendChild(theText);
//}
//function go() {
//	alert("A change has been made.");
//}
////function openDir(form) {
////	window.location =(form.dir.options[form.dir.selected Index].value);
////}
//function switchGallery() {
//	var w = document.frmGallery.collections.selectedIndex;
//	var selected_text = document.frmGallery.collections.options[w].text;
//	document.frmGallery.selection.value = selected_text;
//}
//function submittheform() {
//	document.forms[0].submit();
//}
//function addToFavorites()
// {
//  if (window.external)
//  {
//   window.external.AddFavorite("http://www.lospradoshomes.com","Los Prados Homes")
//  }
//  else
//  { 
//   alert("Sorry! Your browser doesn't support this function.");
//  }
// }
//function reload(form) {
//	var w = document.frmGallery.collections.selectedIndex;
//	var selected_text = document.frmGallery.collections.options[w].text;
//	self.location='justforfun.php?sel=' + selected_text ;
//}
//function selected(choice) {
//	//if (choice == "Select One") {
//		alert(choice);
//	//}
//}
//function findPath(form) {
//	//get the text of photo
//	var text = form.photo.value;	
//	//set the text of path, which is hidden
//	form.path.value = text;
//}
//
