﻿function Eula(btnID,chkID,blnMsgBox,strMessage)
{
   this._blnMsgBox = blnMsgBox;
   this._strMessage = strMessage;
   Agreement.call(this,btnID,chkID);
}

Eula.prototype = new Agreement();

Eula.prototype.IsValid = function()
{
    var blnValid = Agreement.prototype.IsValid.call(this);
    if(blnValid)
    {
       window.location = "/threatcenter/virusscan.aspx";
    }
    else
    {
       if(this._blnMsgBox)
       {
         alert(this._strMessage);
       }
    }
    
}

Eula.prototype.debug = function()
{
   for(prop in this)
   {
      alert(prop + ": " + this[prop]);
   }
}


