<!--Begin

//	This javascript tags file downloads and external links in Google Analytics.
//	You need to be using the Google Analytics New Tracking Code (ga.js) 
//	for this script to work.
//	To use, place this file on all pages just above the Google Analytics tracking code.
//	All outbound links and links to non-html files should now be automatically tracked.
//
//	This script has been provided by Goodwebpractices.com
//	Thanks to ShoreTel, MerryMan and Colm McBarron
//
//	www.goodwebpractices.com
//	VKI has made changes as indicated below.								
if (document.getElementsByTagName) {
    // Initialize external link handlers
    var hrefs = document.getElementsByTagName("a");
    for (var l = 0; l < hrefs.length; l++) {
        // try {} catch{} block added by erikvold VKI
        try {
            //protocol, host, hostname, port, pathname, search, hash
            if (hrefs[l].protocol == "mailto:") {
                startListening(hrefs[l], "click", trackMailto);
            } else if (hrefs[l].hostname == location.host) {
                var path = hrefs[l].pathname + hrefs[l].search;
                var isDoc = path.match(/\.(?:doc|eps|jpg|png|svg|xls|ppt|pdf|xls|zip|txt|vsd|vxd|js|css|rar|exe|wma|mov|avi|wmv|mp3)($|\&|\?)/);
                if (isDoc) {
                    startListening(hrefs[l], "click", trackExternalLinks);
                }
            } else {
                startListening(hrefs[l], "click", trackExternalLinks);
            }
        }
        catch(e) {
            continue;
        }
    }
}

function startListening(obj, evnt, func) {
    if (obj.addEventListener) {
        obj.addEventListener(evnt, func, false);
    } else if (obj.attachEvent) {
        obj.attachEvent("on" + evnt, func);
    }
}

function trackMailto(evnt) {
    var href = (evnt.srcElement) ? evnt.srcElement.href : this.href;
    var mailto = "/mailto/" + href.substring(7);
    if (typeof(pageTracker) == "object") pageTracker._trackPageview(mailto);
}

function trackExternalLinks(evnt) {
    var e = (evnt.srcElement) ? evnt.srcElement : this;
    while (e.tagName != "A") {
        e = e.parentNode;
    }
    var lnk = (e.pathname.charAt(0) == "/") ? e.pathname : "/" + e.pathname;
    if (e.search && e.pathname.indexOf(e.search) == -1) lnk += e.search;
    if (e.hostname != location.host) lnk = "/external/" + e.hostname + lnk;
    if (typeof(pageTracker) == "object") pageTracker._trackPageview(lnk);
}


function StartDate() {
    var TDay = new Array(7)
    TDay[1] = "Monday";
    TDay[2] = "Tuesday";
    TDay[3] = "Wednesday";
    TDay[4] = "Thursday";
    TDay[5] = "Friday";
    TDay[6] = "Saturday";
    TDay[0] = "Sunday";
    var TMonth = new Array(12)
    TMonth[1] = "January";
    TMonth[2] = "February";
    TMonth[3] = "March";
    TMonth[4] = "April";
    TMonth[5] = "May";
    TMonth[6] = "June";
    TMonth[7] = "July";
    TMonth[8] = "August";
    TMonth[9] = "September";
    TMonth[10] = "October";
    TMonth[11] = "November";
    TMonth[12] = "December";
    var time = new Date();
    var year = time.getYear();
    if (year < 2000) // Y2K Fix, Isaac Powell
    year = year + 1900; // http://onyx.idbsu.edu/~ipowell
    var month = TMonth[time.getMonth() + 1];
    var day = TDay[time.getDay()];
    var date = time.getDate();
    var TheDate = day + ", " + month + " " + date + ", " + year;
    document.write("<p class=\"time\">" + TheDate + "</p>");
}

function StartDateFrench() {
    var TDay = new Array(7)
    TDay[1] = "lundi";
    TDay[2] = "mardi";
    TDay[3] = "mercredi";
    TDay[4] = "jeudi";
    TDay[5] = "vendredi";
    TDay[6] = "samedi";
    TDay[0] = "dimanche";
    var TMonth = new Array(12)
    TMonth[1] = "janvier";
    TMonth[2] = "fevrier";
    TMonth[3] = "mars";
    TMonth[4] = "avril";
    TMonth[5] = "mai";
    TMonth[6] = "juin";
    TMonth[7] = "juillet";
    TMonth[8] = "aout";
    TMonth[9] = "septembre";
    TMonth[10] = "octobre";
    TMonth[11] = "novembre";
    TMonth[12] = "decembre";
    var time = new Date();
    var year = time.getYear();
    if (year < 2000) // Y2K Fix, Isaac Powell
    year = year + 1900; // http://onyx.idbsu.edu/~ipowell
    var month = TMonth[time.getMonth() + 1];
    var day = TDay[time.getDay()];
    var date = time.getDate();
    var TheDate = day + ", " + "le " + date + " " + month + ", " + year;
    document.write("<p class=\"time\">" + TheDate + "</p>");
}

function StartDateSpanish() {
    var TDay = new Array(7)
    TDay[1] = "lunes";
    TDay[2] = "martes";
    TDay[3] = "miercoles";
    TDay[4] = "jueves";
    TDay[5] = "viernes";
    TDay[6] = "sábado";
    TDay[0] = "domingo";
    var TMonth = new Array(12)
    TMonth[1] = "de enero";
    TMonth[2] = "de febrero";
    TMonth[3] = "de marzo";
    TMonth[4] = "de abril";
    TMonth[5] = "de mayo";
    TMonth[6] = "de junio";
    TMonth[7] = "de julio";
    TMonth[8] = "de agosto";
    TMonth[9] = "de septiembre";
    TMonth[10] = "de octubre";
    TMonth[11] = "de noviembre";
    TMonth[12] = "de diciembre";
    var time = new Date();
    var year = time.getYear();
    if (year < 2000) // Y2K Fix, Isaac Powell
    year = year + 1900; // http://onyx.idbsu.edu/~ipowell
    var month = TMonth[time.getMonth() + 1];
    var day = TDay[time.getDay()];
    var date = time.getDate();
    var TheDate = day + ", " + "el " + date + " " + month + ", " + year;
    document.write("<p class=\"time\">" + TheDate + "</p>");
}

function Copyright() {
    var TMonth = new Array(12)
    TMonth[1] = "January";
    TMonth[2] = "February";
    TMonth[3] = "March";
    TMonth[4] = "April";
    TMonth[5] = "May";
    TMonth[6] = "June";
    TMonth[7] = "July";
    TMonth[8] = "August";
    TMonth[9] = "September";
    TMonth[10] = "October";
    TMonth[11] = "November";
    TMonth[12] = "December";
    var time = new Date();
    var year = time.getYear();
    if (year < 2000) // Y2K Fix, Isaac Powell
    year = year + 1900; // http://onyx.idbsu.edu/~ipowell
    var month = TMonth[time.getMonth() + 1];
    var date = time.getDate();
    var TheDate = year;
    document.write(TheDate);
}

function todayDate() {
    var months = new Array(13);
    months[1] = "January";
    months[2] = "February";
    months[3] = "March";
    months[4] = "April";
    months[5] = "May";
    months[6] = "June";
    months[7] = "July";
    months[8] = "August";
    months[9] = "September";
    months[10] = "October";
    months[11] = "November";
    months[12] = "December";
    var time = new Date();
    var lmonth = months[time.getMonth() + 1];
    var date = time.getDate();
    var year = time.getYear();
    if (year < 2000) // Y2K Fix, Isaac Powell
    year = year + 1900; // http://onyx.idbsu.edu/~ipowell
    document.write("<img src=\"images/shim.gif\" width=\"1\" height=\"1\"><p class=\"time\">" + lmonth + " ");
    document.write(date + ", " + year + "</p>");
}

function howManyYears() {
    // copyright © Steven-Andrew Moreland, FrescoMedia Designs 1998-2001
    var time = new Date();
    var year = time.getYear();
    if (year < 2000) // Y2K Fix, Isaac Powell
    year = year + 1900; // http://onyx.idbsu.edu/~ipowell
    years = year - 1987;
    document.write(years)
}

function MM_reloadPage(init) { //reloads the window if Nav4 resized
    if (init == true) with(navigator) {
        if ((appName == "Netscape") && (parseInt(appVersion) == 4)) {
            document.MM_pgW = innerWidth;
            document.MM_pgH = innerHeight;
            onresize = MM_reloadPage;
        }
    } else if (innerWidth != document.MM_pgW || innerHeight != document.MM_pgH) location.reload();
}

function MM_findObj(n, d) { //v4.01
    var p, i, x;
    if (!d) d = document;
    if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
        d = parent.frames[n.substring(p + 1)].document;
        n = n.substring(0, p);
    }
    if (! (x = d[n]) && d.all) x = d.all[n];
    for (i = 0; ! x && i < d.forms.length; i++) x = d.forms[i][n];
    for (i = 0; ! x && d.layers && i < d.layers.length; i++) x = MM_findObj(n, d.layers[i].document);
    if (!x && d.getElementById) x = d.getElementById(n);
    return x;
}

function MM_swapImage() { //v3.0
    var i, j = 0,
        x, a = MM_swapImage.arguments;
    document.MM_sr = new Array;
    for (i = 0; i < (a.length - 2); i += 3)
    if ((x = MM_findObj(a[i])) != null) {
        document.MM_sr[j++] = x;
        if (!x.oSrc) x.oSrc = x.src;
        x.src = a[i + 2];
    }
}

function MM_swapImgRestore() { //v3.0
    var i, x, a = document.MM_sr;
    for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
}


function MM_preloadImages() { //v3.0
    var d = document;
    if (d.images) {
        if (!d.MM_p) d.MM_p = new Array();
        var i, j = d.MM_p.length,
            a = MM_preloadImages.arguments;
        for (i = 0; i < a.length; i++)
        if (a[i].indexOf("#") != 0) {
            d.MM_p[j] = new Image;
            d.MM_p[j++].src = a[i];
        }
    }
}
MM_reloadPage(true);

function MM_showHideLayers() { //v3.0
    var i, p, v, obj, args = MM_showHideLayers.arguments;
    for (i = 0; i < (args.length - 2); i += 3) if ((obj = MM_findObj(args[i])) != null) {
        v = args[i + 2];
        if (obj.style) {
            obj = obj.style;
            v = (v == 'show') ? 'visible' : (v = 'hide') ? 'hidden' : v;
        }
        obj.visibility = v;
    }
}

function populateDropMenus() {
    document.forms[0].classification.options[0].text = "Choose a classification that best describes you";
    document.forms[0].jobtitle.options[0].text = "Choose a title that best describes you";
    document.forms[0].classification.options[0].value = "";
    document.forms[0].jobtitle.options[0].value = "";
    if (document.forms[0].classtype[0].checked == true) {
        document.forms[0].classification.options.length = 5;
        document.forms[0].classification.options[1].text = "Municipal (City, Township)";
        document.forms[0].classification.options[1].value = "Municipal";
        document.forms[0].classification.options[2].text = "County";
        document.forms[0].classification.options[2].value = "County";
        document.forms[0].classification.options[3].text = "State";
        document.forms[0].classification.options[3].value = "State";
        document.forms[0].classification.options[4].text = "Federal";
        document.forms[0].classification.options[4].value = "Federal";
        document.forms[0].jobtitle.options.length = 6;
        document.forms[0].jobtitle.options[1].text = "Senior Manager";
        document.forms[0].jobtitle.options[1].value = "Senior Manager";
        document.forms[0].jobtitle.options[2].text = "Engineer";
        document.forms[0].jobtitle.options[2].value = "Engineer";
        document.forms[0].jobtitle.options[3].text = "Foreman, Supervisor, Inspector";
        document.forms[0].jobtitle.options[3].value = "Foreman, Supervisor, Inspector";
        document.forms[0].jobtitle.options[4].text = "Equipment Operator/Laborer";
        document.forms[0].jobtitle.options[4].value = "Equipment Operator/Laborer";
        document.forms[0].jobtitle.options[5].text = "Other (Please be specific)";
        document.forms[0].jobtitle.options[5].value = "Other";
    } else if (document.forms[0].classtype[1].checked == true) {
        document.forms[0].classification.options.length = 8;
        document.forms[0].classification.options[1].text = "Consulting Engineering Firm/Consultant";
        document.forms[0].classification.options[1].value = "Consulting Engineering Firm/Consultant";
        document.forms[0].classification.options[2].text = "Contractor";
        document.forms[0].classification.options[2].value = "Contractor";
        document.forms[0].classification.options[3].text = "Architectural/Design Firm";
        document.forms[0].classification.options[3].value = "Architectural/Design Firm";
        document.forms[0].classification.options[4].text = "Private Water Company";
        document.forms[0].classification.options[4].value = "Private Water Company";
        document.forms[0].classification.options[5].text = "Water/Wastewater Utility";
        document.forms[0].classification.options[5].value = "Water/Wastewater Utility";
        document.forms[0].classification.options[6].text = "Equipment Operator/Laborer";
        document.forms[0].classification.options[6].value = "Equipment Operator/Laborer";
        document.forms[0].classification.options[7].text = "Wholesaler";
        document.forms[0].classification.options[7].value = "Wholesaler";
        document.forms[0].jobtitle.options.length = 11;
        document.forms[0].jobtitle.options[1].text = "Senior Manager";
        document.forms[0].jobtitle.options[1].value = "Senior Manager";
        document.forms[0].jobtitle.options[2].text = "Engineering VP/Dir./Mgr.";
        document.forms[0].jobtitle.options[2].value = "Engineering VP/Dir./Mgr.";
        document.forms[0].jobtitle.options[3].text = "Department Mgr./Head/Chief";
        document.forms[0].jobtitle.options[3].value = "Department Mgr./Head/Chief";
        document.forms[0].jobtitle.options[4].text = "Project Mgr., Foreman, Supervisor, Superintendent";
        document.forms[0].jobtitle.options[4].value = "Project Mgr., Foreman, Supervisor, Superintendent";
        document.forms[0].jobtitle.options[5].text = "Engineer/Consulting Engineer";
        document.forms[0].jobtitle.options[5].value = "Engineer/Consulting Engineer";
        document.forms[0].jobtitle.options[6].text = "Architect/Designer";
        document.forms[0].jobtitle.options[6].value = "Architect/Designer";
        document.forms[0].jobtitle.options[7].text = "Purchasing/Estimator";
        document.forms[0].jobtitle.options[7].value = "Purchasing/Estimator";
        document.forms[0].jobtitle.options[8].text = "Consultant";
        document.forms[0].jobtitle.options[8].value = "Consultant";
        document.forms[0].jobtitle.options[9].text = "Equipment Operator/Laborer";
        document.forms[0].jobtitle.options[9].value = "Equipment Operator/Laborer";

        document.forms[0].jobtitle.options[10].text = "Other (Please be specific)";
        document.forms[0].jobtitle.options[10].value = "Other";
    }
}

function loadMenus() {
    window.prodmenu = new Menu("Products");
    prodmenu.addMenuItem("Product Catalogue", "location='http://www.hancor.com/'");
    prodmenu.addMenuItem("Pipe", "location='http://www.hancor.com/'");
    prodmenu.addMenuItem("Fittings", "location='http://www.hancor.com/'");
    prodmenu.addMenuItem("Retention/Detention", "location='http://www.hancor.com/'");
    prodmenu.addMenuItem("EnviroChamber", "location='http://www.hancor.com/'");
    prodmenu.addMenuItem("Tanks", "location='http://www.hancor.com/'");
    prodmenu.addMenuItem("Waste Water", "location='http://www.hancor.com/'");
    prodmenu.addMenuItem("Meter Pits", "location='http://www.hancor.com/'");
    prodmenu.addMenuItem("Foundation Drainage", "location='http://www.hancor.com/'");
    prodmenu.addMenuItem("Geotextiles", "location='http://www.hancor.com/'");
    prodmenu.addMenuItem("Accessories", "location='http://www.hancor.com/'");

    window.marketmenu = new Menu("Markets");
    marketmenu.addMenuItem("Construction", "location='http://www.hancor.com/'");
    marketmenu.addMenuItem("Agricultural", "location='http://www.hancor.com/'");
    marketmenu.addMenuItem("Recreation", "location='http://www.hancor.com/'");
    marketmenu.addMenuItem("Residential", "location='http://www.hancor.com/'");
    marketmenu.addMenuItem("Specialty", "location='http://www.hancor.com/'");
    marketmenu.addMenuItem("International", "location='http://www.hancor.com/'");

    window.daidsSubMenu = new Menu("Drainage Handbook");
    daidsSubMenu.addMenuItem("1.0 | Specifications", "location='http://www.hancor.com/'");
    daidsSubMenu.addMenuItem("2.0 | Structures", "location='http://www.hancor.com/'");
    daidsSubMenu.addMenuItem("3.0 | Hydraulics", "location='http://www.hancor.com/'");
    daidsSubMenu.addMenuItem("4.0 | Durability", "location='http://www.hancor.com/'");
    daidsSubMenu.addMenuItem("5.0 | Value", "location='http://www.hancor.com/'");
    daidsSubMenu.addMenuItem("6.0 | Installation", "location='http://www.hancor.com/'");
    daidsSubMenu.addMenuItem("Summary", "location='http://www.hancor.com/'");

    window.daidsmenu = new Menu("DesignAids");
    daidsmenu.addMenuItem(daidsSubMenu);
    daidsmenu.addMenuItem("Technical Bulletins", "location='http://www.hancor.com/'");
    daidsmenu.addMenuItem("HDPE Comparison", "location='http://www.hancor.com/'");

    window.ordermenu = new Menu("Ordering");
    ordermenu.addMenuItem("Product Catalogue", "location='http://www.hancor.com/'");
    ordermenu.addMenuItem("How to order", "location='http://www.hancor.com/'");

    window.drawmenu = new Menu("Drawing");
    drawmenu.addMenuItem("Latest Winner", "location='http://www.hancor.com/'");
    drawmenu.addMenuItem("Register to win", "location='http://www.hancor.com/'");

    window.featuremenu = new Menu("Features");
    featuremenu.addMenuItem("Sure-Lok", "location='http://www.hancor.com/'");
    featuremenu.addMenuItem("LandMax", "location='http://www.hancor.com/'");
    featuremenu.addMenuItem("Hi-Q", "location='http://www.hancor.com/'");
    featuremenu.addMenuItem("EnviroChamber", "location='http://www.hancor.com/'");
    featuremenu.addMenuItem("TerraFiber", "location='http://www.hancor.com/'");

    prodmenu.fontSize = 12;
    prodmenu.fontWeight = "Bold";
    prodmenu.fontColor = "#000066";
    prodmenu.fontFamily = "arial, helvetica, espy, sans-serif";
    prodmenu.menuItemBgColor = "#FFCC00";
    prodmenu.menuHiliteBgColor = "#FF9900";
    prodmenu.bgColor = "#83A5C3";
    prodmenu.menuBorder = 0;
    prodmenu.menuContainerBgColor = "#FF9900";
    prodmenu.childMenuIcon = "http://www.hancor.com/images/main/arrows.gif";
    prodmenu.fontColorHilite = "#000066";

    prodmenu.enableHideOnMouseOut = true;
    marketmenu.enableHideOnMouseOut = true;
    daidsSubMenu.enableHideOnMouseOut = true;
    daidsmenu.enableHideOnMouseOut = true;
    ordermenu.enableHideOnMouseOut = true;
    drawmenu.enableHideOnMouseOut = true;
    featuremenu.enableHideOnMouseOut = true;

    prodmenu.prototypeStyles = prodmenu;
    marketmenu.prototypeStyles = prodmenu;
    daidsmenu.prototypeStyles = prodmenu;
    daidsSubMenu.prototypeStyles = prodmenu;
    drawmenu.prototypeStyles = prodmenu;
    featuremenu.prototypeStyles = prodmenu;

    prodmenu.writeMenus();
}

function hideMenu() {
    prodmenu.enableHideOnMouseOut = true;
    marketmenu.enableHideOnMouseOut = true;
    daidsSubMenu.enableHideOnMouseOut = true;
    daidsmenu.enableHideOnMouseOut = true;
    ordermenu.enableHideOnMouseOut = true;
    drawmenu.enableHideOnMouseOut = true;
    featuremenu.enableHideOnMouseOut = true;
    menu.enableHideOnMouseOut = true;
}

function MM_callJS(jsStr) { //v2.0
    return eval(jsStr)
}

function HiddenTag(fieldname, fieldvalue) {
    return "<input type=hidden name=\"" + fieldname + "\" value=\"" + fieldvalue + "\">";
}

function PlusToSpace(inputString) {
    var temp = "";

    for (var pos = 0; pos < inputString.length; pos++) {
        var character = inputString.charAt(pos);
        if (character != '+') temp += character;
        else temp += " ";
    }

    return temp;
}

function FindSubject() {
    paramlist = "" + unescape(location.search);
    var lookFor = "subject=";
    pos = paramlist.search(lookFor);
    if (pos == -1) {
        document.write("Hancor Literature Request");
        return;
    }

    paramlist = paramlist.substring(pos + lookFor.length, paramlist.length);
    paramlist = PlusToSpace(paramlist);

    pos = paramlist.search("&");
    if (pos != -1) document.write(paramlist.substring(0, pos));
    else document.write(paramlist);
}

function decodeString() {
    var valItemName;
    var valQuantity;
    var string, length, dataCount, orderData;
    string = "" + unescape(location.search);
    string = string.substring(1, string.length);
    length = location.search.length;
    orderData = "";
    dataCount = 1;

    for (var c = 0; c < string.length; c++)
    if (string.charAt(c).indexOf("&") != -1) dataCount++;

    orderData = "<table border=1 width=400>";
    orderData += "<tr><td><h2>Description</h2></td><td><h2>Quantity</h2></td></tr>";

    for (var i = 0; i < dataCount - 1; i++) {
        var temp = string.substring(0, string.indexOf("="));
        string = string.substring(string.indexOf("=") + 1, string.length);

        valItemName = "";
        valQuantity = "";

        // Replace + characters with Spaces
        valItemName = PlusToSpace(temp);

        if (i == dataCount - 1) valQuantity = string;
        else valQuantity = string.substring(0, string.indexOf("&"));

        ampd = string.indexOf("&");
        string = string.substring(ampd + 1, string.length);

        if (valItemName == "subject") {
            orderData += HiddenTag(valItemName, PlusToSpace(valQuantity));
            continue;
        }

        if (valQuantity != 0) {
            orderData += HiddenTag(valItemName, valQuantity);
            orderData += "\n<tr>\n";
            orderData += "<td><p>" + valItemName + "</p></td>";
            orderData += "<td><p>" + valQuantity + "</p></td>";
            orderData += "</tr>\n";
        }
    }

    orderData += "\n<tr>";
    orderData += "<td colspan=3 align=center><input type=submit value=\"Confirm Order!\"> or <a href=\"javascript:history.go(-1)\">Go Back</a></td>";
    orderData += "</tr>";
    orderData += "</table>";
    document.write(orderData);
}

//copyright 2000 Matthew Gallant, Steven-Andrew Moreland

function field(name, value) {
    this.name = name;
    this.value = value;
}

function encodeString(inputString) {
    var temp = "";

    for (var i = 0; i < inputString.length; i++) {
        var character = inputString.charAt(i);

        if (character != " ") temp += character;
        else temp += "+";
    }

    return escape(temp);
}

function doSubmit() {
    var fields = new Array();
    var numElements = document.forms[0].elements.length;

    // Build array of elements which actually have values.
    for (var i = 0; i < numElements; i++) {
        var element = document.forms[0].elements[i];
        if (element.type != "button" && element.type != "reset" && element.value != "") {
            fields[fields.length] = new field(encodeString(element.name), encodeString(element.value));
        }
    }

    // Generate "submit string" portion of URL from the array.
    var submitString = "?";
    var numFields = fields.length;

    for (i = 0; i < numFields; i++)
    submitString += fields[i].name + "=" + fields[i].value + "&";

    document.location.href = document.forms[0].action + submitString;
}


function FindSelect() {
    paramlist = "" + unescape(location.search);
    var lookFor = "select=";
    pos = paramlist.search(lookFor);
    if (pos == -1) {
        return;
    }

    paramlist = paramlist.substring(pos + lookFor.length, paramlist.length);
    paramlist = PlusToSpace(paramlist);

    pos = paramlist.search("&");
    if (pos != -1) document.write(paramlist.substring(0, pos));
    else document.write(paramlist);
}

function howMuch(textField) {
    if (textField > 5) {
        alert("There is a maximum quantity of 5 items per order");
    }
}

function howMuch2(textField) {
    if (textField > 10) {
        alert("There is a maximum quantity of 10 items per order");
    }
}

function MM_validateForm() { //v4.0
    var i, p, q, nm, test, num, min, max, errors = '',
        args = MM_validateForm.arguments;
    for (i = 0; i < (args.length - 2); i += 3) {
        test = args[i + 2];
        val = MM_findObj(args[i]);
        if (val) {
            nm = val.name;
            if ((val = val.value) != "") {
                if (test.indexOf('isEmail') != -1) {
                    p = val.indexOf('@');
                    if (p < 1 || p == (val.length - 1)) errors += '- ' + nm + ' must contain an e-mail address.\n';
                } else if (test != 'R') {
                    if (isNaN(val)) errors += '- ' + nm + ' must contain a number.\n';
                    if (test.indexOf('inRange') != -1) {
                        p = test.indexOf(':');
                        min = test.substring(8, p);
                        max = test.substring(p + 1);
                        if (val < min || max < val) errors += '- Your order can only contain quantities of  between ' + min + ' and ' + max + ' units. Please correct your quantities.\n';
                    }
                }
            } else if (test.charAt(0) == 'R') errors += '- ' + nm + ' is required.\n';
        }
    }
    if (errors) alert('The following error(s) occurred:\n' + errors);
    document.MM_returnValue = (errors == '');
}

function steveWindow() {
    day = new Date();
    id = day.getTime();
    eval("page" + id + "=window.open('../daids/landmax/frames.html', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=590,height=525,left=80,top=80');");
}

function HotNews(url) {
    window.close();
    opener.window.location.href(url);
}

//Set hidden text boxes to values from drop-down menu


function changeToSend() {
    var form = document.rapidsurvey;
    var a = document.rapidsurvey.areaConcern.options[document.rapidsurvey.areaConcern.selectedIndex].value;
    //var b = (form.areaConcernName.value != '') ? eval(form.areaConcernName.value) : 0;
    var c = form.areaConcernEmail.value;
    var b = form.areaConcernName.value;
    //var c = form.areaConcernEmail.value;
    switch (a) {
    case "1":
        form.areaConcernName.value = "Billing";
        form.areaConcernEmail.value = "tmogon@hancor.com";
        break
    case "2":
        form.areaConcernName.value = "Communication";
        form.areaConcernEmail.value = "tdurliat@hancor.com";
        break
    case "3":
        form.areaConcernName.value = "Customer Service";
        form.areaConcernEmail.value = "tmogon@hancor.com";
        break
    case "4":
        form.areaConcernName.value = "Delivery";
        form.areaConcernEmail.value = "tmogon@hancor.com";
        break
    case "5":
        form.areaConcernName.value = "Product Availability";
        form.areaConcernEmail.value = "espearman@hancor.com";
        break
    case "6":
        form.areaConcernName.value = "Product Quality";
        form.areaConcernEmail.value = "cdouglass@hancor.com";
        break
    case "7":
        form.areaConcernName.value = "Warranty";
        form.areaConcernEmail.value = "cdouglass@hancor.com";
        break
    case "8":
        form.areaConcernName.value = "Other";
        form.areaConcernEmail.value = "tmogon@hancor.com";
        break
    default:
        form.areaConcernName.value = "Unknown";
        form.areaConcernEmail.value = "tmogon@hancor.com";
    }
}
// End -->
