<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE object PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<object>
<body>    &lt;!-- Begin script that validates proper text entry in form --&gt;&lt;script type="text/javascript" language="JavaScript"&gt;&lt;!--        function submitForm(form) {        if (checkIt(form)) {            form.submit();        }    }    //checkIt verifies that required fields contain data, that e-mail address conforms to proper    //e-mail syntax, and that the hidden library field contains data    function checkIt(form) {        var name = form.chat_name.value;        var email = form.chat_email.value;    /* Library: To make the question field required, remove the comment characters (//) from the next     line and other sections where indicated. */        //var ques = form.question.value;        var lib = form.library.value;           var msg = '';                  //Make sure Name field contains data        if (name.length &lt; 1)            msg += 'Name';                  //Make sure the E-mail field contains data        if (email.length &lt; 1) {            if(msg.length &gt; 0)                msg+=', ';            msg += 'Email Address';        }                /*Library: To make the Question field required, remove the comment characters (//) from the next        five lines. */        //if (ques.length &lt; 1) {        //  if(msg.length &gt; 0)        //      msg+=', ';        //  msg += 'Question';        //}                  //Display message to patron if required field(s) are blank          if (msg != '') {            alert("One or more required fields are blank:\r\n" + msg);            return false;        }                //Display message if library hidden field is blank.        if(lib.length &lt; 1) {            alert("Your library has an error in this form. Please contact the library to alert them to the problem\r\n");            return false;        }            //Check e-mail address for proper syntax by calling emailCheck function        if (emailCheck(email, true)) {             return true;        }        else {          return false;        }    }    //function that validates e-mail address syntax    function emailCheck (emailStr, alertflag) {        var emailPat=/^(.+)@(.+)$/        var specialChars="\\(\\)&lt;&gt;@,;:\\\\\\\"\\.\\[\\]"        var validChars="\[^\\s" + specialChars + "\]"        var quotedUser="(\"[^\"]*\")"        var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/        var atom=validChars + '+'        var word="(" + atom + "|" + quotedUser + ")"        var userPat=new RegExp("^" + word + "(\\." + word + ")*$")        var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")         var matchArray=emailStr.match(emailPat)            if (matchArray==null) {                if (alertflag)            alert("E-mail address seems incorrect (check @ and .'s).")            return false        }            var user=matchArray[1]        var domain=matchArray[2]                // See if "user" is valid             if (user.match(userPat)==null) {            // user is not valid             if (alertflag)             alert("The username in your e-mail address doesn't seem to be valid.")            return false        }            /* if the e-mail address is at an IP address (as opposed to a symbolic           host name) make sure the IP address is valid. */         var IPArray=domain.match(ipDomainPat)            if (IPArray!=null) {            // this is an IP address              for (var i=1;i&lt;=4;i++) {                if (IPArray[i]&gt;255) {              if (alertflag)                    alert("Destination IP address is invalid!")                return false                }            }            return true        }            // Domain is symbolic name        var domainArray=domain.match(domainPat)            if (domainArray==null) {              if (alertflag)            alert("The domain in your e-mail address doesn't seem to be valid.")            return false        }               var atomPat=new RegExp(atom,"g")        var domArr=domain.match(atomPat)        var len=domArr.length        musExp = /.museum/        isMus = domain.search(musExp)            if ( ( (domArr[domArr.length-1].length &lt; 2) || (domArr[domArr.length-1].length &gt; 6) ) ||            (domArr[domArr.length-1].length == 5) ||            ( (domArr[domArr.length-1].length == 6) &amp;&amp; (isMus == -1) ) ) {        // the address must end in a two, three, or four letter word, or .museum.          if (alertflag)                alert("E-mail address must end in a three or four-letter domain, two-letter country code, or .museum.")          return false    }    // Make sure there's a host name preceding the domain.        if (len&lt;2) {               var errStr="This e-mail address is missing a hostname!"                if (alertflag)               alert(errStr)               return false            }                        // If we've gotten this far, everything's valid!            return true;    }        //--&gt;&lt;/script&gt;    &lt;!-- End validation script --&gt;&lt;!--Begin chat form --&gt;    &lt;form target="new" onsubmit="return checkIt(this)"    name="entryform1"    action="http://www.questionpoint.org/crs/servlet/org.oclc.chat.ClientInit"&gt;      &lt;!-- &lt;form onsubmit="return checkIt(this)" name="entryform1" action="http://www.questionpoint.org/crs/servlet/org.oclc.home.TFSRedirect?virtcategory=10518"&gt;--&gt;      &lt;input name="source" type="hidden" value="3" /&gt;&lt;input      name="service" type="hidden" value="3" /&gt;      &lt;!-- Begin language hidden input field. --&gt;      &lt;!-- If this form will be in a language other than English, replace the value attribute "1" with the appropriate value for your language, as described in http://questionpoint.org/web/members/addingchatform.html. --&gt;&lt;input       name="language" type="hidden" value="1" /&gt;      &lt;!-- End language hidden input field --&gt;      &lt;!-- Begin library hidden input field. Replace the value attribute "1" with your library's QuestionPoint institution ID, supplied by OCLC, in the library hidden input field --&gt;&lt;input       name="library" type="hidden" value="10518" /&gt;      &lt;!-- End library hidden input field --&gt;             &lt;table width="95%" cellpadding="3" cellspacing="0"      align="center"&gt;        &lt;tr&gt;          &lt;td colspan="2"&gt;          &lt;!-- This is a placeholder for a graphic of your choice. --&gt;&lt;img           height="56" border="0" width="147" alt="Ask Away"          src="/id0904f67a80225b2e" /&gt;&lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;          &lt;td colspan="2"&gt;            &lt;h2&gt;Ask a Librarian&lt;/h2&gt;          &lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;          &lt;td colspan="2" align="left"&gt;            Welcome to Lovejoy Library's Chat Reference service.            Chat reference service is available 24 hours a day, 7            days a week. The service is staffed by Lovejoy            Library's librarians on a limited basis; at other times            the service is monitored by professionals at other            libraries in Illinois and Wisconsin.             &lt;p&gt;Please enter your name, e-mail address, and            question; then click Chat. Another browser window opens            for the chat session.             &lt;!-- End of explanatory text. --&gt;&lt;/p&gt;          &lt;/td&gt;        &lt;/tr&gt;        &lt;!-- LABEL and ACCESSKEY tags used below provide greater accessibility to your form --&gt;&lt;!-- Start of name field --&gt;        &lt;tr&gt;          &lt;th width="20%" align="right"&gt;&lt;label for="chat_name"          accesskey="N"&gt;*Name:&lt;/label&gt;&lt;/th&gt;          &lt;td width="80%"&gt;&lt;input name="chat_name" maxlength="128"          size="50" id="chat_name" /&gt;&lt;/td&gt;        &lt;/tr&gt;        &lt;!-- End of name field --&gt;        &lt;!-- Start of e-mail address field --&gt;        &lt;tr&gt;          &lt;th width="20%" align="right"&gt;&lt;label for="chat_email"          accesskey="E"&gt;*E-mail Address:&lt;/label&gt;&lt;/th&gt;          &lt;td width="80%"&gt;&lt;input name="chat_email" maxlength="100"          size="50" id="chat_email" /&gt;&lt;/td&gt;        &lt;/tr&gt;        &lt;!-- End of e-mail address field --&gt;        &lt;!-- Start of question field --&gt;        &lt;tr&gt;          &lt;th width="20%" align="right"&gt;&lt;label for="question"          accesskey="Q"&gt;Question:&lt;/label&gt;&lt;/th&gt;          &lt;td width="80%"&gt;&lt;textarea name="question" rows="7"          cols="50" id="question"&gt;          &lt;/textarea&gt;&lt;/td&gt;        &lt;/tr&gt;        &lt;!-- End of question field --&gt;        &lt;tr&gt;          &lt;td colspan="2"&gt;            &lt;table border="0" width="100%" cellspacing="0"            cellpadding="0"&gt;              &lt;tr&gt;                &lt;td&gt;&amp;nbsp;&lt;br /&gt; Asterisk (*) denotes required                field.&lt;/td&gt;                &lt;td align="right"&gt;&lt;input name="Submit"                type="submit" value="Chat" accesskey="S" /&gt;&lt;/td&gt;                &lt;td width="10" align="right"&gt;                &lt;/td&gt;              &lt;/tr&gt;            &lt;/table&gt;          &lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;          &lt;td colspan="2"&gt;          &lt;!-- Space for additional custom text and/or images in this table cell. --&gt;Add          a message of your choice here or delete this line.           &lt;!-- End of space for additional custom text. --&gt;&lt;/td&gt;        &lt;/tr&gt;      &lt;/table&gt;    &lt;/form&gt;    &lt;!--End chat form --&gt;  </body>
<profile />
<leftcolumn />
<subject />
<css />
<Keywords />
<header />
<keywords />
<js />
<sectionheader />
<print_css />
</object>

