function CustInfo(isLogin,welcomeName,encryptCustIDValue){ this.IsLogin=isLogin; this.WelcomeName=welcomeName; this.EncryptCustIDValue=encryptCustIDValue; } function getCustInfo() { var custInfo=new CustInfo("1","0","0"); return custInfo; }