// Functions to be used with the 2-column, liquid layout with header and footer or 
// 2-column, fixed-width layout with header and footer at http://www.searchenginefriendlylayouts.com.
// This code may be freely distributed and used in any commercial or non-commercial application, as long as
// these comments are maintained.  All other comments may be removed.

function clearOld (absoluteDivName) {
	// hides a div and absolutely positions it outside of the viewable area of the page.
	var absoluteDiv = document.getElementById(absoluteDivName);
	absoluteDiv.style.visibility = 'hidden';
	absoluteDiv.style.overflow = 'hidden';
	absoluteDiv.style.display = 'none';
	absoluteDiv.style.top = '-2px';
	absoluteDiv.style.left = '-2px';
	absoluteDiv.style.width = '1px';
	absoluteDiv.style.height = '1px';
}

function replaceDivs(floatDivId, absoluteDivId) {
	// This function replaces the contents of the floating div with the contents of the absolutely positioned div.
	var floatDiv = document.getElementById(floatDivId);
	var absoluteDiv = document.getElementById(absoluteDivId);
	var leftHTML = absoluteDiv.innerHTML;
	floatDiv.innerHTML = leftHTML;
	// clear the inner HTML of the absolutely positioned div and hide it to be safe.
	absoluteDiv.innerHTML = null;
	clearOld (absoluteDivId);
}
   
   function mailpage()
{
mail_str = "mailto:?subject=Check out this page from ChangingSpacesMoving.com -  " + document.title;
mail_str += "&body=I thought you might be interested in this page from ChangingSpacesMoving.com -  " + document.title;
mail_str += ". You can view it at - " + location.href; 
location.href = mail_str;
}

function Validate()

{

    if (document.form1.customer_name.value.length < 1)

    {

	alert("Please enter your name.");

	return false;

    }

	else if (document.form1.day_phone.value.length < 1)

    {

	alert("Please enter your daytime phone number.");

	return false;

    }

	else if (document.form1.email.value.length < 1)

    {

	alert("Please enter your email address.");

	return false;

    }

	else

	{

	return true;

	}

}
