//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //:: general_functions_js.asp //:: created: christopher j falvey (05.13.01) //:: //:: version: 2.0 //:: desc: general javascript functions //:: //:: //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //:: javascript functions //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //:: popUp //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function popUp(sUrl , iWidth , iHeight , bScrollBars) { sPageName = "DFPopUp" window.open(sUrl , sPageName , "status=1,scrollbars=" + bScrollBars + ",width=" + iWidth + ",height=" + iHeight + ",resizable=yes"); } //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //:: popUpPrintable //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function popUpPrintable(sUrl , iWidth , iHeight , bScrollBars) { sPageName = "DFPopUp" window.open(sUrl , sPageName , "status=1,scrollbars=" + bScrollBars + ",width=" + iWidth + ",height=" + iHeight + ",resizable=yes,toolbar=yes"); } //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //:: flipNavImage //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function flipNavImage(sImageName , sFlipTo , sExtension) { document.images[sImageName].src = "images/navButton_" + sImageName + "_" + sFlipTo + "." + sExtension } //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //:: refreshPage //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function refreshPage() { document.location = document.location } //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //:: getRandomNumber //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function getRandomNumber(iBeginNum , iEndNum) { iNumberToSend = iBeginNum - 1 while(iNumberToSend < iBeginNum || iNumberToSend > iEndNum) { iNumberToSend = iBeginNum + (Math.random() * iEndNum) } return Math.round(iNumberToSend) }