    // this is for DisclaimerControlOnLoad control
    startscript = function(behaviourID,cookieName,cookieValue)
    { 

        
        if((cookieIndex = document.cookie.indexOf(cookieName)) == -1){
            // show the popup extender page disclaimer
            DisplayModalPopup(behaviourID);
        }
      }

    function onCancel(url)
    {
        var times= window.history.length - 1;
        if (times > 0) 
        {          
            window.history.back(); 
            return false;
        }
        else
        {
            document.write(""); 
            window.location = url;
            return false;
         }
    } 
 
  // onok in when you click on the disclaimer accept buttom
  function onOkLoad(cookieName)
    { 
         document.cookie = cookieName+"="+cookieName + ";yes;path=/;" ; // onOkUK create cookies
    } 
    


