function ShowInfo(selValue) { if(selValue!="") { if(selValue=="Tupelo") { document.getElementById("info").innerHTML = "
Country Squire - Tupelo
1270 Oakview Dr.
Tupelo, MS 38804
Freddy & Ina Norman
Phone: 662.680.8660
Email: tupelo@country-squire.net

"; //document.form2.emailto.value="tupelo@country-squire.net"; } else { document.getElementById("info").innerHTML = "
Country Squire - Iuka
459 Hwy 172
Iuka, MS 38852
Rusty & Kathie Norman
Phone: 662.423.9984
Email: iuka@country-squire.net

"; //document.form2.emailto.value="iuka@country-squire.net"; } } else { document.getElementById("info").innerHTML = ""; //document.form2.emailto.value=""; } } function SetInfo(selValue) { if(selValue!="") { if(selValue=="Tupelo") { document.form1.tostreet.value="1270 Oakview Dr."; document.form1.tozip.value="38804"; } else { document.form1.tostreet.value="459 Hwy 172"; document.form1.tozip.value="38852"; } } else { document.form1.tostreet.value=""; document.form1.tozip.value=""; } } function SendEmail() { var x; var alertmsg; x=0; alertmsg = "The following fields are required: "; if (document.form1.location.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Location"; x = x + 1; } if (document.form1.fromname.value == "") { if (x > 0) { alertmsg = alertmsg + ", "; } alertmsg = alertmsg + "Your Name"; x = x + 1; } if (document.form1.fromemail.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Your Email"; x = x + 1; } if (document.form1.subject.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Subject"; x = x + 1; } if (document.form1.body.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Body"; x = x + 1; } if (x == 0) { document.form1.submit(); } else { alert(alertmsg); return false; } } function GetDirections() { var x; var alertmsg; x=0; alertmsg = "The following fields are required: "; if (document.form1.location.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Location"; x = x + 1; } if (document.form1.fromstreet.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Your Street"; x = x + 1; } if (document.form1.fromzip.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Your Zip"; x = x + 1; } if (x == 0) { document.form1.submit(); } else { alert(alertmsg); return false; } }