/*
FILE ARCHIVED ON 12:36:48 Jan 12, 2009 AND RETRIEVED FROM THE
AN OPENWAYBACK INSTANCE ON 19:47:04 Jun 4, 2024.
JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
$(document).ready(function() {
$("#quicksearch").click(function() { $("searchform").submit() });
if($("#commentError").length == 0)
{
$("#commenttext").focus(function() { $("#commenttext").val("") });
}
$("#postcomment").click(function() {
if ($("#commentbox").css("display") == 'none')
{
$("#commentbox").show();
} });
$("#commentform").validate({
rules: {
name: "required",
email: {
required: true,
email: true
},
title: "required",
comments: "required"
},
messages: {
name: "*Please specify a valid value for name.",
comments: "*Comments cannot be empty and cannot exceed 500 charcters.",
title:"*Title description cannot be empty"
}
});
});
//Default Site Studio Generated .js Script File
function showwidget(url) {
var w = 800;
var h = 400;
w += 32;
h += 96;
wleft = (screen.width - w) / 2;
wtop = (screen.height - h) / 2;
if (wleft < 0) {
w = screen.width;
wleft = 0;
}
if (wtop < 0) {
h = screen.height;
wtop = 0;
}
var win = window.open(url,null,"width=" + w + ", height=" + h+ 'left=' + wleft + ', top=' + wtop +",resizable=no,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
//win.resizeTo(w, h);
//win.moveTo(wleft, wtop);
if (win.focus) {win.focus()}
return false;
}
function validateDate(strdate) {
var RegExPattern = /^(?=\d)(?:(?:(?:(?:(?:0?[13578]|1[02])(\/|-|\.)31)\1|(?:(?:0?[1,3-9]|1[0-2])(\/|-|\.)(?:29|30)\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})|(?:0?2(\/|-|\.)29\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))|(?:(?:0?[1-9])|(?:1[0-2]))(\/|-|\.)(?:0?[1-9]|1\d|2[0-8])\4(?:(?:1[6-9]|[2-9]\d)?\d{2}))($|\ (?=\d)))?(((0?[1-9]|1[012])(:[0-5]\d){0,2}(\ [AP]M))|([01]\d|2[0-3])(:[0-5]\d){1,2})?$/;
if ((strdate.match(RegExPattern)) || (strdate =='')) {
return true;
} else {
return false;
}
}
function onUserLogin(){
if (document.forms[0].username.value =="" || document.forms[0].password.value=="")
{
$("#errorLogin").empty().append("Invalid user name or password!").fadeIn("slow");
return false;
}
}
if (typeof DOMParser == "undefined") {
DOMParser = function () {}
DOMParser.prototype.parseFromString = function (str, contentType) {
if (typeof ActiveXObject != "undefined") {
var d = new ActiveXObject("MSXML.DomDocument");
d.loadXML(str);
return d;
} else if (typeof XMLHttpRequest != "undefined") {
var req = new XMLHttpRequest;
req.open("GET", "data:" + (contentType || "application/xml") +
";charset=utf-8," + encodeURIComponent(str), false);
if (req.overrideMimeType) {
req.overrideMimeType(contentType);
}
req.send(null);
return req.responseXML;
}
}
}