passpage = document.URL if (top.location == self.location) top.location.href="../master.html?" + passpage function validation() { var firstname = document.ContactForm.First_Name; var lastname = document.ContactForm.Last_Name; var phone = document.ContactForm.Phone; var email = document.ContactForm.Email; var mesitem = document.ContactForm.MES_Item; var yourquestion = document.ContactForm.Your_Question; if (firstname.value == "") { window.alert("Please enter your first name."); firstname.focus(); return false; } if (lastname.value == "") { window.alert("Please enter your last name."); lastname.focus(); return false; } if (email.value == "" && phone.value == "") { window.alert("Please provide either a phone number or your email address so we can reply to your inquiry."); email.focus(); return false; } if (email.value != "") { if (email.value.indexOf("@", 0) < 0) { window.alert("Please enter a valid e-mail address."); email.focus(); return false; } if (email.value.indexOf(".", 0) < 0) { window.alert("Please enter a valid e-mail address."); email.focus(); return false; } } if (yourquestion.value == "Please Enter Here") { window.alert("Please enter a question or comment so we know what you are inquiring about."); yourquestion.focus(); return false; } return true; } function movepic(img_name,img_src) { document[img_name].src=img_src; } function addtofav(linkUrl,linkTitle){ if (!document.all) { alert('Please hit ctrl-d to bookmark this page'); } else external.AddFavorite(linkUrl,linkTitle); } function EmailLink() { u=window.location; var to = ""; var cc = ""; var bcc = ""; var subject = ""+document.title+""; var body = "Hello,\n\n\tI found a "+document.title+" that you maybe interested in. \n\n\t You can view it by clicking this link: \n " +u + "\n\n You can contact them at: \n\n Medical Equipment Services \n www.medequipserv.com \n Phone: \n 309-887-4786 \n Fax: \n 309-887-9507 \n Email: \n sales@medequipserv.com \n" var doc = "mailto:" + to + "?cc=" + cc + "&bcc=" + bcc + "&subject=" + escape(subject) + "&body=" + escape(body); window.location = doc; }