//--------- Bookmark Us ------------//

function bookmarksite(){
var myloc = location.href;
var title = "Renfroe and Quinn";
if (document.all)
window.external.AddFavorite(myloc,title);
else if (window.sidebar)
window.sidebar.addPanel(title, myloc,"")
}
//End

//--------------Send to Friend---------------//

function sendtofriend() {
	var URL 
	URL = location.href;
	window.open('sendtofriend.html?page='+URL, 'EmailWindow', 'scrollbars=yes,width=772,height=318');
}
//End

//----------------- Check the Email if valid--------------------//


function CheckEmail(Email){
 if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(Email)) {
  return true
 }
 
 return (false)
}
//End

/*-------------- Free Consultation--------------------------*/

function subDetails() {
	var cForm = document.frmConsult;
	var ctr = 0;
	if (cForm.txtName.value=="") {
		alert("Please type in your Name.");
		cForm.txtName.focus();
		var ctr = 1;
	}
	
	else if(cForm.txtPhone.value=="") {
	alert("Please type in your Phone Number");
	cForm.txtPhone.focus();
	var ctr = 1;
	}
	
	else if(cForm.txtEmail.value=="") {
		alert("Please type in your Email Address.");
		cForm.txtEmail.focus();
		var ctr = 1;
	}
		
	else if (CheckEmail(cForm.txtEmail.value)==false) {
		alert("Please check your Email Address.");
		cForm.txtEmail.focus();
		var ctr = 1;
	}
	
	else if(cForm.security_code.value=="") {
	alert("Please type in the Verification Code shown in the Image.");
	cForm.security_code.focus();
	var ctr = 1;
	}
	
	if(ctr == 0){
	cForm.confirmDetails.value="submitOk";
	cForm.submit();
	
	}
}

/* Rndom Txt*/


