﻿// JScript file

function RecommendObject(id,name,email,femail)
{
  var o = this;
  this.name = name;
  this.email = email;
  this.femail = femail;
  var data;
    this.getData = function()
    {
        return data;
    }
    this.Subscribe = function() //insert
    {
        com.GS.DataHandler.AjaxHandler.Subscribe_Recommend(name, email,femail, o.CallBack);
    }
    this.CallBack = function(res)
    {
        data = res.value;
        if(data)
            id.innerHTML="Thank you for recommend <b>Global Smile&copy;</b>, we know that our success is only a measure of yours. ";
        else
            id.innerHTML="Server error.";

    }
}