﻿function sendFeedback() {
    strComments = document.frmFeedbackService.txtFBComment.value;
    strComments = strComments.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
    strPageFrom = document.frmFeedbackService.hdPageFrom.value;
    if (strComments == '') {
        alert('Please provide a comment. Let us know what you think.');
        return false;
        }
    else {
        xmlHttp = getXmlHttpObject();
        displayType = "inline";
        cssResponseID = "newBox";
        xmlHttp.onreadystatechange = stateChanged;
        xmlHttp.open("POST", "/_scripts/sendFeedback.asp", true);
        xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
        xmlHttp.send("txtFBPageFrom=" + escape(strPageFrom) + "&txtFBComment=" + escape(strComments));
        document.frmFeedbackService.txtFBComment.value = "";
        restoreElement("newBox", "feedback")
        }
	}