function PreloadImages() { if (document.images) { var i = 0; imgObject = new Image(); for(i=0;i<=8;i++) { imgObject.src = "../images/2b" + (i+3) + "b.jpg"; } } } function SwapImage(which,image) { if (document.images) { which.src = "images/" + image; } } function ValidateContact() { var x; var alertmsg; x=0; alertmsg = "The following fields are required: "; if (document.getElementById("name").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Name";x = x + 1;} if (document.getElementById("email").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Email";x = x + 1;} if (document.getElementById("subject").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Subject";x = x + 1;} if (document.getElementById("body").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Body";x = x + 1;} if (x == 0) { document.getElementById("contactform").submit(); } else { alert(alertmsg); return false; } } function ValidateInquiry() { var x; var alertmsg; x=0; alertmsg = "The following fields are required: "; if (document.getElementById("name").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Name";x = x + 1;} if (document.getElementById("email").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Email";x = x + 1;} if (document.getElementById("body").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Inquiry";x = x + 1;} if (x == 0) { document.getElementById("inquiryform").submit(); } else { alert(alertmsg); return false; } } function ValidateRegistration() { var x; var alertmsg; x=0; alertmsg = "The following fields are required: "; if (document.getElementById("first").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "First";x = x + 1;} if (document.getElementById("last").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Last";x = x + 1;} if (document.getElementById("tusername").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Username";x = x + 1;} if (document.getElementById("tpassword").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Password";x = x + 1;} if (document.getElementById("email").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Email";x = x + 1;} if (document.getElementById("phone1a").value == "" || document.getElementById("phone1b").value == "" || document.getElementById("phone1c").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "City";x = x + 1;} else{document.getElementById("phone").value = document.getElementById("phone1a").value + document.getElementById("phone1b").value + document.getElementById("phone1c").value;} if (document.getElementById("address1").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Address 1";x = x + 1;} if (document.getElementById("city").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "City";x = x + 1;} if (document.getElementById("state").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "State";x = x + 1;} if (document.getElementById("zip").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Zip";x = x + 1;} if (x == 0) { document.getElementById("registerform").submit(); } else { alert(alertmsg); return false; } } function ValidateRequest() { var x; var alertmsg; x=0; alertmsg = "The following fields are required: "; if (document.getElementById("first").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "First";x = x + 1;} if (document.getElementById("last").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Last";x = x + 1;} if (document.getElementById("email").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Email";x = x + 1;} if (document.getElementById("phone1a").value == "" || document.getElementById("phone1b").value == "" || document.getElementById("phone1c").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "City";x = x + 1;} else{document.getElementById("phone").value = document.getElementById("phone1a").value + document.getElementById("phone1b").value + document.getElementById("phone1c").value;} if (document.getElementById("address1").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Address 1";x = x + 1;} if (document.getElementById("city").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "City";x = x + 1;} if (document.getElementById("state").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "State";x = x + 1;} if (document.getElementById("zip").value == ""){if (x > 0){alertmsg = alertmsg + ", ";}alertmsg = alertmsg + "Zip";x = x + 1;} if (x == 0) { document.getElementById("catalogform").submit(); } else { alert(alertmsg); return false; } } function popup(mypage, myname, w, h, scroll) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable' win = window.open(mypage, myname, winprops) if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } function borderit(which,color){ if (document.all||document.getElementById) { which.style.borderColor=color; } } function Jump(tUrl) { window.location=tUrl; }