var glTimer=0;
var glObj=null;
var glKey='';

function RKF_Check() {var theButton=document.getElementById(glKey);if (glObj.value=='') {theButton.className='buttonD';} else {if (theButton.className=='buttonD') theButton.className='button';}glTimer=0;glObj=null;}
function RKF_Enable(theObj, theKey) {if (glTimer==0) {glObj=theObj;glKey=theKey;glTimer=setTimeout("RKF_Check()", 180);}}
function RKF_GetDocHeight() {var D=document;return Math.max(Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),Math.max(D.body.clientHeight, D.documentElement.clientHeight));}
function RKF_GetDocWidth() {var D=document;return Math.max(Math.max(D.body.scrollWidth, D.documentElement.scrollWidth),Math.max(D.body.offsetWidth, D.documentElement.offsetWidth),Math.max(D.body.clientWidth, D.documentElement.clientWidth));}
function RKF_GetWinHeight() {var myHeight=0;if (typeof(window.innerHeight)=='number') {myHeight=window.innerHeight;} else {if (document.documentElement && document.documentElement.clientHeight) {myHeight=document.documentElement.clientHeight;} else {if (document.body && document.body.clientHeight) {myHeight=document.body.clientHeight;}}}return myHeight;}
function RKF_GetWinWidth() {var myWidth=0;if (typeof(window.innerWidth)=='number') {myWidth=window.innerWidth;} else {if (document.documentElement && document.documentElement.clientWidth) {myWidth=document.documentElement.clientWidth;} else {if (document.body && document.body.clientWidth) {myWidth=document.body.clientWidth;}}}return myWidth;}
function RKF_Off(theObj) {var theClass=theObj.className;if (theClass=='buttonH') theObj.className='button';if (theClass=='buttonSH') theObj.className='buttonS';if (theClass=='buttonPH') theObj.className='buttonP';}
function RKF_On(theObj) {var theClass=theObj.className;if (theClass=='button') theObj.className='buttonH';if (theClass=='buttonS') theObj.className='buttonSH';if (theClass=='buttonP') theObj.className='buttonPH';}
function RKF_Verify(theForm) {var isGood=true;var numElems=theForm.elements.length-1;for(ix=numElems; ix>=0; ix--) {var theObj=theForm.elements[ix];if (theObj.className=='req' || theObj.className=='err') {if (theObj.value=='') {theObj.className='err';theObj.focus();isGood=false;} else {theObj.className='req';}}}if (isGood==false) {alert('Some required information is missing.');return false;}return true;}

