// ----------------------------------------------------------------------------------------------------------------------------------
// PROGRAM
// PAGE            custom.js
// AUTHOR          Peter Le
// LANGAUGE        JavaScript
// PURPOSE         Customer JavaScript functions
//
// REVISION HISTORY
// Date			Progammer	Purpose 
// ----------	--------	--------------------------------------------------------------------------------------------
// 07/09/2009	Peter Le	Initial write
// 23/10/2009	Sameeran    Moving scripts from master page to custom.js file
//---------------------------------------------------------------------------------------------->

function openWind(url,windName) {
    var winWidth = window.screen.width - 50;
    var winHeight = window.screen.height - 200;
    var newWind = window.open(url,windName,"menubar=1,resizable=1,toolbar=1,scrollbars=1,location=1,status=1,width=" + winWidth + ",height=" + winHeight + "'");
    newWind.focus();
}


function goToPage(url) {
    location = url;
}

function showImage(imgId, rollMode, btnName) 
        {
               var objImg = document.getElementById(imgId);
               btnName = btnName.replace("~/", "");
               btnName = btnName.replace(".gif", "");
               btnName = btnName.replace(".jpg", "");
               btnName = btnName.replace("_off", "");
               btnName = btnName.replace("_on", "");
               if (objImg) 
               {
                   if (rollMode == "on") 
                   {
                       // var tempName = "uploadedimages/save_on.gif";
                       objImg.src = btnName + "_on.gif"; //  btnName + "_on.gif";

                   }
                   else if (rollMode == "off") 
                   {
                       objImg.src = btnName + "_off.gif";
                   }
               }
           }


// EOF -->
