function productSearch( ) {
	var sSearch = document.getElementById('txtSearch');

	if( sSearch.value.length>=3 ) {
		window.location = 'prodIx.php?m=kw&key='+sSearch.value;
	} else {
		alert('A qualified Search requires at least 3 characters.');
	}
}



function showGallery( srcImage ) {
	swapImage( 'galleryIMG', "images/"+srcImage );
	with( document.getElementById('galleryIMG') ) {
		style.display = "block";
		style.visibility = "visible";
	}
}



function hideGallery( ) {
	with( document.getElementById('galleryIMG') ) {
		style.display = "none";
		style.visibility = "hidden";
	}
	swapImage( 'galleryIMG', "images/_spacer.gif" );
}



function validateFeedback( form )
{	
  var counter =0;
	if (form.txtName.value == "") {
	  alert("You must enter your Full Name.");
	  form.txtName.focus()
	  counter =1;
	}else if(form.txtEmail.value == "") {
	  alert("You must enter your Email Address.");
	  form.txtEmail.focus()	
	  counter =1;
	}else if(form.txtPhone.value == "") {
	  alert("You must enter your Phone Number.");
	  form.txtPhone.focus()	
	  counter =1;  
	}else if(form.txtLotLoc.value == "") {
	  alert("You must enter Lot Location.");
	  form.txtLotLoc.focus()	
	  counter =1;
	}else if(form.txtLotArea.value == "") {
	  alert("You must enter a Lot Area.");
	  form.txtLotArea.focus()
	  counter =1;
	}else if(form.txtBudget.value == "") {
	  alert("You must enter your Ideal Budget.");
	  form.txtBudget.focus()	
	  counter =1;
	
	}else if(form.txtConstruct.value == "") {
	  alert("You must enter the Start of Construction.");
	  form.txtConstruct.focus()	
	  counter =1;
	
	}else if(form.txtMessage.value == "") {
	  alert("You must enter your Message.");
	  form.txtMessage.focus()	
	  counter =1;
	}

	if(counter == 0){		  
		  form.submit()
		 
	}
}



function splashPage ( ) {
	var timer = document.getElementById("timer").firstChild.nodeValue;
	if( timer>0 )
		timer = timer-1;

	document.getElementById("timer").firstChild.nodeValue = timer;
	if( timer==0 )
		window.location="home.php";
}