<% Session("AbandonSurvey")=0; Session("ApplicationTypeID")=1; var bOfferView = ( (Request.Form("page_state")==1)? 1 : 0); var bBannerCode = false; var iOfferSet = get_offer_set( Request("Promo_ID") ); if(iOfferSet > 0) { bBannerCode = true; } var szBanner = get_banner( iOfferSet ); if(bBannerCode || bOfferView) { bOfferView=1; } //Response.Write("
bBannerCode ::: " + bBannerCode); //50-50 test track split SetTestTrackSessionState(); SetMSN_Performance_Plus(); var bIsSubmitted = (Request.Form("isSubmitted")==1); var page_data = new page_input ( 0, 0 , null); if (!bIsSubmitted && Request.ServerVariables("REQUEST_METHOD")=="GET") { validate_refer_a_friend(); handle_page_request(); } else { handle_post(); } // --------------------------------------------------------------------------------------------------------------- function _in_array( szPromoCode, array_list ) { var bInArray = false; for(var x=0;x Citibank Online
Already have a Citibank Checking Account?
Click here.
 
Please review the
Client Manual
with Citibank® Online Marketplace Addendum.
 
 
 

<% if(!bOfferView) { %> That's all it takes to apply for a Regular Checking Account with Citibank® EZ Checking. <% } else { %> 4 simple steps is all it takes to apply for a Regular Checking Account with Citibank® EZ Checking.

Important: This offer is only available for first-time Citibank checking/deposit account customers. <% } %>
   

 
<%= page_data.get_error_msg("Promo_ID") %>
Offer Code   ">
To Apply Online
 
You must be:
a U.S. citizen or
resident alien
18 years of age or older
 
You must have:
a U.S. address
a social security number
a driver’s license or
state issued ID
What information do I need to apply?
   
How long does the application take?
   
Is my online application secure?
   
What are the benefits of a Citibank EZ Checking Package?
   
What other banking packages are available?
" width="1" height="1" border="0"> <% // --------------------------------------------------------------------------------------------------------------- function handle_post() { var rules = new input_rule_set(); rules.add("Promo_ID", RULE_OPTIONAL, "string", 3, 6, valid_offer_code, "Please enter a valid offer code, or leave this field blank." ); page_data = new page_input( REQ_FORM, SECURITY_CHECK_ALL, rules ); if (!page_data.errors_found()) { SaveData(page_data); } } // --------------------------------------------------------------------------------------------------------------- function handle_page_request() { var rules = new input_rule_set(); rules.add("ProspectID", RULE_OPTIONAL, "string", 32, 32, null, "" ); rules.add("Prospect_ID",RULE_OPTIONAL, "string", 32, 32, null, "" ); rules.add("Promo_ID", RULE_OPTIONAL, "string", 3, 6, valid_offer_code, "" ); page_data = new page_input( REQ_QUERYSTRING, SECURITY_CHECK_ALL, rules ); page_data.suppress_errors( !bIsSubmitted ); if (!page_data.get_error_code("ProspectID") && page_data.get_value("ProspectID") != null) { Session("ProspectID") = page_data.get_value("ProspectID"); } else if (!page_data.get_error_code("Prospect_ID") && page_data.get_value("Prospect_ID") != null) { Session("ProspectID") = page_data.get_value("Prospect_ID"); } if (!page_data.get_error_code("Promo_ID") && page_data.get_value("Promo_ID") != null) { gPromoCode = page_data.get_value("Promo_ID"); } LoadData(page_data); } // --------------------------------------------------------------------------------------------------------------- function LoadData(page_data) { var iAppID = parseInt(Session("iAppID")); if (!isNaN(iAppID) && iAppID > 0) { var app_obj = new consumer_application(); app_obj.Load(iAppID); //page_data.add_item( "txtEmail", app_obj.GetValue("APP_EMAIL") ); page_data.add_item( "Promo_ID", app_obj.GetValue("OFFER_CODE") ); app_obj = null; } } // --------------------------------------------------------------------------------------------------------------- function SaveData( page_data ) { var iAppID = parseInt(Session("iAppID")); if (isNaN(iAppID) || iAppID < 1) { var app_obj = new consumer_application(); iAppID = app_obj.CreateApp(); } Session("iAppID") = iAppID; var app_obj = new consumer_application(); app_obj["APPLICATION_ID"] = iAppID //app_obj["APP_EMAIL"] = page_data.get_value("txtEmail"); app_obj["OFFER_CODE"] = page_data.get_value("Promo_ID"); //'Version Field is data type integer ... version 2.1 is stored as 3 app_obj["VERSION"] = 3; //'ApplicationTypeID -- new field as of 11/01/03, data type int -- 1 "EZ Checking" app_obj["APPLICATIONTYPEID"] = 1; pull_refer_a_friend_data(app_obj); var prospect_id = UnpackGUID(Session("ProspectID")); if (prospect_id && prospect_id.length==38) { app_obj["Prospect_ID"] = prospect_id; } app_obj.Save(); app_obj=null; app_obj = new consumer_application(); app_obj.Load(iAppID); Session("Application_GUID") = app_obj.GetValue("Application_GUID"); if (0 && app_obj.GetValue("App_Email")!="" ) //'This is commented out... The first insert is on aboutyourself { try { app_obj.Load(iAppID); insertContacts( "" ,"" ,"" ,"" ,app_obj.GetValue("Offer_Code") ,app_obj.GetValue("Prospect_Id") ,app_obj.GetValue("App_Email") ,"" ,"" ,"" ,app_obj.GetValue("Application_GUID") ); } catch(e) { //Response.Write(e.Description); } } //Response.Write(bBannerCode); Response.End(); if(!bBannerCode) { post_redirect("about_yourself.htm", "Citibank Account Opening: Getting Started"); } else { if(iOfferSet > 0) { post_redirect("alert_offer.htm", "Citibank Account Opening: Getting Started"); } else { post_redirect("about_yourself.htm", "Citibank Account Opening: Getting Started"); } } } //------------------------------------------------------------------------------------ function GetCookieInteger( szCookieBase, szField ) { if ( szCookieBase == null ) szCookieBase = g_szGlobalCookieBase; if ( !Request.Cookies( szCookieBase ).HasKeys ) return null; var szValue = Request.Cookies( szCookieBase )( szField ); if ( szValue == "" ) szValue = null; var iValue; if ( szValue == null ) iValue = null; else { iValue = parseInt( szValue ); if ( isNaN( iValue ) ) iValue = null; } return iValue; } // --------------------------------------------------------------------------------------------------------------- function GetCookieExpirationExt( iDays ) { var szDate; var tmExpireDate = new Date(); tmExpireDate.setDate(tmExpireDate.getDate() + iDays); var sMonths = new Array( "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", "January" ); szDate = sMonths[ tmExpireDate.getMonth() ] + " " + tmExpireDate.getDate() + ", " + tmExpireDate.getYear(); return szDate; } // --------------------------------------------------------------------------------------------------------------- function SetTestTrackSessionState() { var base = "STK"; var key = "EZC20040310"; Session("TestTrack") = 0; return; if (!Session("TestTrack")) { var mod_check = GetCookieInteger(base, key); if (mod_check == null) { if (!Application("TestTrackCounter")) { Application.Lock(); Application("TestTrackCounter")=1; mod_check = 0; Application.UnLock(); } else { Application.Lock(); mod_check = ++Application("TestTrackCounter"); mod_check %= 2; Application.UnLock(); } } if (mod_check) { Session("TestTrack") = 1; } else { Session("TestTrack") = -1; } Response.Cookies( base )( key ) = mod_check; Response.Cookies( base ).Expires = GetCookieExpirationExt( 360 ); Response.Cookies( base ).Path = "/"; } } //--------------------------------------------------------------------------------------------------------------- function get_offer_set( offer_code ) { var aIPodCodes = new Array( "CK51" ,"CD29" ,"CGC5" ,"CW40" ,"CD2A" ,"CDVA" ,"CD19" ,"CK53" ,"CGC8" ,"CDJA" ,"CDHA" ,"CDIA" ,"CDKA" ,"CDMA" ,"CDNA" ,"CCUA" ); var aIPodShuffleCodes = new Array( "CD2G" ,"CK59" ,"CDBV" ,"CDIG" ,"CDMG" ,"CDHG" ,"CDJG" ,"CD1G" ,"CDCV" ,"CDEV" ); if(!iOfferSet) { if(_in_array(offer_code,aIPodCodes) ) { iOfferSet = 1; } else if(_in_array(offer_code,aIPodShuffleCodes) ) { iOfferSet = 2; } } return iOfferSet; } function get_banner(iOfferSet) { var img_src = ""; switch ( parseInt(iOfferSet,10) ) { case 1: //'iPod { img_src = "img/app_ipod_banner.gif"; bBannerCode=true; break; } case 2: //'iPod Shuffle { img_src = "img/app_shuffle_banner.gif"; bBannerCode=true; break; } default: { img_src = "img/header_basics.gif"; break; } } return img_src; } //--------------------------------------------------------------------------------------------------------------- function validate_refer_a_friend() { Session("RefID")=0; Session("bReferrer")= false; var ref = String(Request.QueryString("ref")); var promo_id = new String(Request.QueryString("Promo_ID")); var bValidPromo = ((promo_id.toUpperCase()=="CEMM" || promo_id.toUpperCase()=="CEMR") ); Session("bReferrer") = (promo_id.toUpperCase()=="CEMM"); if(ref.length==32 && (promo_id.toUpperCase()=="CEMM" || promo_id.toUpperCase()=="CEMR") ) { var db=OpenDB(); var szSQL = "SELECT " + ( (Session("bReferrer"))? "ReferrerID" : "RefereeID" ) + " AS RefID FROM " + ( (Session("bReferrer"))? "FTAF_Referrers" : "FTAF_Referees" ) + " WHERE EntryGUID='" + UnpackGUID(ref) + "'"; //Response.Write(szSQL); Response.End(); var rs = db.Execute(szSQL); if(!rs.eof) { Session("RefID")= parseInt(rs.Fields("RefID").value,10); } rs.Close(); rs=null; db.Close(); db=null; } } function pull_refer_a_friend_data(app_obj) { var db=OpenDB(); var szSQL = "SELECT * FROM " + ( (Session("bReferrer"))? "FTAF_Referrers" : "FTAF_Referees" ) + " WHERE " + ( (Session("bReferrer"))? "ReferrerID" : "RefereeID" ) + "=" + Session("RefID"); //var szSQL = "SELECT * FROM FTAF_Referrers WHERE ReferrerID=" + Session("RefID"); var rs = db.Execute(szSQL); if(!rs.eof) { if(Session("bReferrer")) { app_obj["APP_NAME_FIRST"] = String(rs.Fields("FirstName").value); app_obj["APP_NAME_LAST"] = String(rs.Fields("LastName").value); } app_obj["APP_EMAIL"] = String(rs.Fields("EmailAddress").value); } rs.Close(); rs=null; db.Close(); db=null; } %>