var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
// ***** --------------- *****
// ***** putfocus.js *****
// ***** --------------- *****
//*************************************************************************
//*
//* Title: putFocus()
//* Category:
//* Program Name: putfocus.js
//* WEB URL:
//* Created By: Chad Kuehn & TAKE
//* Created Date: 2005-12-09
//* Language: JavaScript
//* Description:
//*
//* Example: /example/putfocus.js
//*
//* Version: 2.02
//*
//* Compatibility:
//*
//* Win IE6 - O
//* Win NS7 - O
//* Win NS4 - O
//* Win FF1 - O
//* Mac IE5 - O
//* Mac NS7 - O
//* Mac SF1 - O
//*
//*************************************************************************
function putFocus(param1, param2){
// --- if param 1 is less than 0, just return <2008-05-16 TAKE> ---
if (param1 < 0) {
return 0;
}
// --- putFocus(id) type <2007-07-03 TAKE> ---
if (isNaN(arguments[0])) {
document.getElementById(arguments[0]).focus();
return 0;
}
// --- validate arguments ---
arg = parseInt(arguments[1]);
if(arg && isNaN(arg)){
alert('Second argument is invalid!');
return false;
}
// --- find form & element index ---
switch(arguments.length){
case 2:
var frmIndex = parseInt(arguments[0]);
var elmIndex = parseInt(arguments[1]);
break;
case 1:
var frmIndex = 0;
var elmIndex = parseInt(arguments[0]);
break;
default:
var frmIndex = 0;
var elmIndex = 0;
break;
}
// --- adjustment for the redface skin <2009-02-06 TAKE> ---
var oSearchForm = document.getElementById('skinSearchForm');
if (oSearchForm) {
frmIndex += 1;
}
// --- check if form tag exists ---
if(!document.forms[frmIndex]){
return false;
}
// --- check if input tag exists ---
if(!document.forms[frmIndex].elements[elmIndex]){
return false;
}
// --- put focus in the form element ---
var el = document.forms[frmIndex].elements[elmIndex];
if(((el.type=='text')||(el.type=='textarea')||(el.type=="password")||(el.type=="file"))&&(!el.disabled)){
el.focus();
return true;
}
return false;
}
// ***** ---------------- *****
// ***** psusubmit.js *****
// ***** ---------------- *****
// *********************************************************************
//
// Title: psusubmit()
// Category: function
// Created By: J.Burns & TAKE
// Created Date: 2005-09-01
// Language: JavaScript
// Description: This function can be used instead of the submit()
// to submit the form with the button values.
// There are four purposes to use this function.
//
// 1. Allow users to submit only if JavaScript is enabled.
// 2. Disable enter key to submit.
// 3. Submit form by clicking on image or something.
//
// Example: https://go.pittstate.edu/example/js.submit
// https://go.pittstate.edu/example/psusubmit
//
// Usage: (ez) onclick="psusubmit(obj, [value])" // obj is usually "this"
// (adv)onclick="psusubmit(id, [value])
// * for MacIE5
is also
// requred. Otherwise, the form will be submitted by
// enter key.
//
// Example: /example/psusubmit
//
// Compatibility:
//
// Win IE6 : O
// Win NS4 : X
// Win NS7 : O
// Win FF1 : O
// Mac NS7 : O
// Mac IE5 : O
// Mac SF1 : O
//
// *********************************************************************
function psusubmit(param1, param2){
// ----- check to see if an argment is sent -----
if(!param1){
alert("Missing Arguments");
return 0;
}
// ----- check to see if the id is an illigal name -----
if(param1 == 'submit'){
alert('"submit" cannot be used as an id');
return 0;
}
// ----- create object depended on the argument -----
var oSubmit;
if (typeof(param1)=='string'){
oSubmit = element(param1);
} else {
oSubmit = param1;
}
var ENV_OS = getOS();
var ENV_BROWSER = getBrowser();
var oForm = oSubmit.form;
// ---------------------------------------------------------
// If browser is MacIE5, using GET method to send Submit
// because on MacIE oElement.type="hidden" does not work.
// ---------------------------------------------------------
if(ENV_OS == "MAC" && ENV_BROWSER == "IE"){
var sDelim = '&';
if(oForm.action.indexOf('?')==-1){
sDelim = '?'
}
if (param2) {
oForm.action += sDelim + oSubmit.name + "=" + param2;
} else {
oForm.action += sDelim + oSubmit.name + "=" + oSubmit.value;
}
//if(oForm.onsubmit)oForm.onsubmit();
oForm.submit();
} else {
if (oSubmit.type == "button" || oSubmit.type == "submit") {
var oElement = window.document.createElement("input");
// ----- set attribute -----
oElement.name = oSubmit.name;
oElement.type = "hidden";
if (param2){
oElement.value = param2;
} else {
oElement.value = oSubmit.value;
}
// ----- append element to the form -----
oForm.appendChild(oElement);
} else {
if (param2) {
oSubmit.value = param2;
}
}
// ----- submit -----
oForm.submit();
}
}
// ***** ----------------------- *****
// ***** rodcommonScripts.js *****
// ***** ----------------------- *****
// isValidSSN.js
// isValidEmail.js
var im = String.fromCharCode(255);
var fm = String.fromCharCode(254);
var vm = String.fromCharCode(253);
var sm = String.fromCharCode(252);
var tm = String.fromCharCode(251);
function numbersOnly(e, exceptions){
// in the rodcommonScripts.js file
/*
Some common exceptions:
36 = $
44 = ,
45 = -
46 = .
THEY ARE DELIMITED BY COMMAS
*/
var key = '';
if(window.event){
key = e.keyCode;
}else if(e.which){
key = e.which;
}
if(key == '')return true;
var ASCII = new Array();
ASCII[0] = 48; //0
ASCII[1] = 49; //1
ASCII[2] = 50; //2
ASCII[3] = 51; //3
ASCII[4] = 52; //4
ASCII[5] = 53; //5
ASCII[6] = 54; //6
ASCII[7] = 55; //7
ASCII[8] = 56; //8
ASCII[9] = 57; //9
ASCII[11] = 8; //BACKSPACE - so you can edit your number (DELETE WORKS ANYWAY)
ASCII[12] = 13; //CARRIAGE RETURN - so form can be submitted by pressing RETURN within the textbox
if (exceptions){
var res = exceptions.split(",");
var cnt = res.length;
for (var x = 0; x < cnt; x++){
ASCII = ASCII.concat(res[x]); //,
}
}
var found = false;
var cnt = ASCII.length;
for (var x = 0; x < cnt; x++) {
if(key == ASCII[x]){
found = true;
break;
}
}
if(found){
return true;
}else{
return false;
}
/*
Sample:
Limitations: You can bypass it if you paste text into the field.
*/
}
function trim(str){
// in the rodcommonScripts.js file
return str.replace(/^\s+/,'').replace(/\s+$/,'');
}
function getOS(){
// in the rodcommonScripts.js file
var ENV_OS;
// ----- check operating system -----
if(navigator.userAgent.indexOf("Mac")>-1){
ENV_OS = 'MAC';
} else if(navigator.userAgent.indexOf("Win")>-1){
ENV_OS = 'WIN';
} else if(navigator.userAgent.indexOf("Linux")>-1){
ENV_OS = 'LIN';
}
return ENV_OS;
}
function getBrowser(){
// in the rodcommonScripts.js file
var ENV_BROWSER;
// ----- check browser -----
if (navigator.userAgent.indexOf("Opera")>-1){
ENV_BROWSER = 'OP'
} else if(navigator.userAgent.indexOf("Safari")>-1){
ENV_BROWSER = 'SF'
} else if(navigator.userAgent.indexOf("MSIE")>-1){
ENV_BROWSER = 'IE';
} else if(navigator.userAgent.indexOf("Netscape")>-1){
ENV_BROWSER = 'NS';
} else if(navigator.userAgent.indexOf("Firefox")>-1){
ENV_BROWSER = 'FF';
}
return ENV_BROWSER;
}
function element(id){
// in the rodcommonScripts.js file
// ----- all except IE4 & NS4 -----
if(document.getElementById != null){
return document.getElementById(id);
}
// ----- just for IE -----
if(document.all != null){
return document.all[id];
}
// ----- for netscape 4 -----
if(document.layers != null){
return document.layers[id];
}
return 0;
}
function isNumeric(strString){
// in the rodcommonScripts.js file
/*
Check for valid numeric strings!
A second argument is optional. It is boolean and states whether or not
to use digits (0-9) only. Default is false, allowing periods and
negative signs.
*/
var strValidChars;
var digitsOnly = false;
if(arguments.length > 1){
digitsOnly = arguments[1];
}
if(digitsOnly){
strValidChars = "0123456789";
}else{
strValidChars = "0123456789.-";
}
var strChar;
var blnResult = true;
if (strString.length == 0) return false;
// test strString consists of valid characters listed above
for (i = 0; i < strString.length && blnResult == true; i++){
strChar = strString.charAt(i);
if (strValidChars.indexOf(strChar) == -1){
blnResult = false;
}
}
return blnResult;
}
// *********************************************************************
// Created: TAKE <2006-11-22>
//
// int getMouseX(e)
// - return mouse's x position
// *********************************************************************
function getMouseX(e){
// in the rodcommonScripts.js file
//rt.11.08.11 if(window.opera){
//rt.11.08.11 return e.clientX;
//rt.11.08.11 } else if(document.all){
//rt.11.08.11 return document.body.scrollLeft + event.x;
//rt.11.08.11 } else if(document.layers||document.getElementById){
//rt.11.08.11 return e.pageX;
//rt.11.08.11 }
//rt.11.08.11 return 0;
myBrowserType = client_Browser_Info.browserPropertyName;
myBrowserVersionNum = client_Browser_Info.browserPropertyMajorVersion;
// if (e.pageX == null)
if (myBrowserType == "IE")
{
// IE case
var d = (document.documentElement && document.documentElement.scrollLeft != null) ? document.documentElement : document.body;
return e.clientX + d.scrollLeft;
}
else
{
// all other browsers
return e.pageX;
}
}
// *********************************************************************
// Created: TAKE <2006-11-22>
//
// int getMouseY(e)
// - return mouse's y position
// *********************************************************************
function getMouseY(e){
// in the rodcommonScripts.js file
// if(window.opera){
// return e.clientY;
// } else if(document.all){
// return document.body.scrollTop + event.y;
// } else if(document.layers||document.getElementById){
// return e.pageY;
// }
// return 0;
myBrowserType = client_Browser_Info.browserPropertyName;
myBrowserVersionNum = client_Browser_Info.browserPropertyMajorVersion;
// if (e.pageY == null)
if (myBrowserType == "IE")
{
// IE case
var d = (document.documentElement && document.documentElement.scrollLeft != null) ? document.documentElement : document.body;
return e.clientY + d.scrollLeft;
}
else
{
// all other browsers
return e.pageY;
}
}
// ======================================================================
// Created: TAKE <2006-11-27>
//
// str addUrlQuery(sUrl, sQuery)
//
// sUrl - URL
// sQuery - Query (Server Request by GET method)
//
// ======================================================================
function addUrlQuery(sUrl, sQuery){
// in the rodcommonScripts.js file
// ----- if query is empty, just return -----
if (!sQuery) {
return sUrl;
}
// ----- remove after '#' -----
var sJumper = '';
var iLoc = sUrl.indexOf('#');
if (iLoc != -1) {
sJumper = sUrl.substr(iLoc);
sUrl = sUrl.substr(0, iLoc);
}
// ----- add query to the url -----
if (sUrl.indexOf('?') == -1) {
sUrl += '?' + sQuery;
} else {
sUrl += '&' + sQuery;
}
// ----- add '#~' after the url -----
sUrl += sJumper;
return sUrl;
}
var client_Browser_Info = new BrowserProperities();
function BrowserProperities()
// in the rodcommonScripts.js file
{
this.browserPropertyName = '';
this.browserPropertyFullName = '';
this.browserPropertyFullVersion = '';
this.browserPropertyMajorVersion = '';
this.browserPropertyAgent = '';
this.browserPropertyVersion = '';
var nVer = navigator.appVersion;
var nAgt = navigator.userAgent;
var browserName = navigator.appName;
var browserFullName = navigator.appName;
var fullVersion = '' + parseFloat(navigator.appVersion);
var majorVersion = parseInt(navigator.appVersion,10);
var nameOffset, verOffset, ix;
// In Opera, the true version is after "Opera" or after "Version"
if ((verOffset = nAgt.indexOf("Opera")) != -1) {
browserName = "OP";
browserFullName = "Opera";
fullVersion = nAgt.substring(verOffset + 6);
if ((verOffset = nAgt.indexOf("Version")) != -1)
fullVersion = nAgt.substring(verOffset + 8);
}
// In MSIE, the true version is after "MSIE" in userAgent
else if ((verOffset=nAgt.indexOf("MSIE"))!=-1) {
browserName = "IE";
browserFullName = "Microsoft Internet Explorer";
fullVersion = nAgt.substring(verOffset + 5);
}
// In Chrome, the true version is after "Chrome"
else if ((verOffset = nAgt.indexOf("Chrome")) != -1) {
browserName = "CH";
browserFullName = "Chrome";
fullVersion = nAgt.substring(verOffset + 7);
}
// In Safari, the true version is after "Safari" or after "Version"
else if ((verOffset = nAgt.indexOf("Safari")) != -1) {
browserName = "SF";
browserFullName = "Safari";
fullVersion = nAgt.substring(verOffset + 7);
if ((verOffset = nAgt.indexOf("Version")) != -1)
fullVersion = nAgt.substring(verOffset + 8);
}
// In Firefox, the true version is after "Firefox"
else if ((verOffset = nAgt.indexOf("Firefox")) != -1) {
browserName = "FF";
browserFullName = "Firefox";
fullVersion = nAgt.substring(verOffset + 8);
}
// In most other browsers, "name/version" is at the end of userAgent
else if ( (nameOffset = nAgt.lastIndexOf(' ') + 1) < (verOffset = nAgt.lastIndexOf('/')) )
{
browserName = nAgt.substring(nameOffset, verOffset);
fullVersion = nAgt.substring(verOffset + 1);
if (browserName.toLowerCase() == browserName.toUpperCase()) {
browserName = navigator.appName;
}
}
// trim the fullVersion string at semicolon/space if present
if ((ix = fullVersion.indexOf(";")) != -1) fullVersion = fullVersion.substring(0, ix);
if ((ix = fullVersion.indexOf(" ")) != -1) fullVersion = fullVersion.substring(0, ix);
majorVersion = parseInt('' + fullVersion, 10);
if (isNaN(majorVersion)) {
fullVersion = '' + parseFloat(navigator.appVersion);
majorVersion = parseInt(navigator.appVersion, 10);
}
this.browserPropertyName = browserName;
this.browserPropertyFullName = browserFullName;
this.browserPropertyFullVersion = fullVersion;
this.browserPropertyMajorVersion = majorVersion;
this.browserPropertyAgent = nAgt;
this.browserPropertyVersion = nVer;
}
function mouseCoordinateX(e) {
// in the rodcommonScripts.js file
if (e.pageX) return e.pageX;
else if (e.clientX)
return e.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
else return 0;
}
function mouseCoordinateY(e) {
// in the rodcommonScripts.js file
if (e.pageY) return e.pageY;
else if (e.clientY)
return e.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
else return 0;
}
// ***** --------------- *****
// ***** menulink.js *****
// ***** --------------- *****
/************************************************************************
*
* Title: menulink.js
* Category:
* Program Name: menulink.js
* WEB URL:
* Created By: TAKE
* Created Date: 2006-07-17
* Language: JavaScript
* Description: To make the menu selection area whole menu width.
*
************************************************************************/
var sOrgMenuColor;
var sOrgMenuBgColor;
/************************************************************************
* function (menulinkMouseOver)
************************************************************************/
function menulinkMouseOver(Obj){
// ----- save the currnt setting -----
sOrgMenuColor = Obj.style.color;
sOrgMenuBgColor = Obj.style.backgroundColor;
// ----- change color -----
x = Obj.parentNode;
Obj.style.color = "#000000";
x.style.backgroundColor = "#cccccc";
x.style.cursor = 'pointer';
}
/************************************************************************
* function (menulinkMouseOver) for redface skin
************************************************************************/
function appmenuMouseOver(oTr){
sOrgMenuBgColor = oTr.style.backgroundColor;
oTr.style.backgroundColor = '#f5efd9';
oTr.style.linkColor = '#990000';
oTr.style.cursor = 'pointer';
}
/************************************************************************
* function (menulinkMouseOut)
************************************************************************/
function menulinkMouseOut(Obj){
x = Obj.parentNode;
x.style.backgroundColor = sOrgMenuBgColor;
}
/************************************************************************
* function (menulinkMouseOut) for redface skin
************************************************************************/
function appmenuMouseOut(oTr){
oTr.style.backgroundColor = sOrgMenuBgColor;
}
/************************************************************************
* function (menulinkMouseDown) for all
************************************************************************/
function menulinkMouseDown(sUri){
location.href = sUri;
}
// ***** ------------ *****
// ***** smoke.js *****
// ***** ------------ *****
// ********************************************************************
//
// Created By: TAKE
// Created Date: 2008-04-15
// Language: JavaScript
// Program Name: smoke.js
// Description: function to make smoke screen with message.
// Loading is the default for the message.
//
// Usage: