Convert military time to standard time
<pre><code>function checkTime(item) {
    if((item.value == "") || (doc.findItem('warning_checkbox').value == '1'))
        return true;
    if(fixtime(item,true,2)) {
        if(item.value/1 &lt; "0800" || item.value &gt; "1700") {
            item.value = "";
            alert("between 8 AM and 5 PM.");
            return true;
        }
    } else {
        item.value = "";
        alert("Invalid Time.  Time must be between 8 AM and 5 PM.");
        return true;
    }
    if(item.value &lt; "0800" &amp;&amp; item.value &gt; "1700") {
        item.value = "";
        alert("between 8 AM and 5 PM.");
        return true;
    }
    fixtime(item,true,0);
}
</code></pre>

<p>I am using this function to convert standard time to military, but I can't figure out how to convert military to standard time. an example would be <code>1525 = 03:25 pm</code>.  </p>
