
//--------------------------------------------------------------------------------------- 
// FileName: 	DSI_WT_TrackData_SignupForm.js
//
// Purpose:  	Holds WT_Track object creation for specific form "Signup_Form"
//				Each form should have a unique DSI_WT_TrackData>[....] .js file. 
//				When a form is filled out and submitted, the dsiWTTrackItem will save the trackable
//				form data into a cookie. This cookie is then loaded and read by the following page
//				and recorded in Web Trend. In order to transfer data between pages, cookies are used.
//
// Dependency:	DSI_WT_TrackFunction.js  - Holds the dsiWTTrackItem object
//
// Usage:		Declare a new instance of the dsiWTTrackItem. 
//				Add one record for each Form field that needs tracking.
//				add(<cookie Name>, <Form Field Name>, <should it be tracked>, <tracking string>)
//					- cookie Name = any arbitrary name that will be stored in the cookie. Keep short.
//					- Form Field Name = the name given to the component on the form. Must match!
//					- tracked = true/false. Only "true" will be saved to cookie and tracked
//					- track String = What will be written to the HTML page in so that Web Trend can
//					  read and record the data correctly. It is IMPORTANT that "%s" is placed at the
//					  location where the Form data should go. "%s", thus, is a place holder for this data.
//
// Debugging	Debugging will throw some alerts. You can set degbugging by changing the alert level 
//				betwee 0 - no alerts and 5 and so on. The higher the debugging  level, more alerts show.
//
// Date:		12/08/2009
//
// Author:		Sergio Pinheiro
//
//

// var WT_Track = new dsiWTTrackItem();    // Object creation moved to DSI_WT_TrackFunction.js
	WT_Track.add("zip", "person_homeAddress_zipcode", true, '<meta name="WT.z_zip" content="%s"\/>');
	WT_Track.add("yob", "person_birthYear", true, '<meta name="WT.z_yob" content="%s"\/>');   
	WT_Track.add("gender", "person_gender", true, '<meta name="WT.z_gender" content="%s"\/>');
	WT_Track.add("drug", "subscriber_productUser", true, '<meta name="WT.z_drug_status" content="%s"\/>');
 	WT_Track.add("role", "currentUse", true, '<meta name="WT.z_visitor_role" content="%s"\/>');
	
	
//	WT_Track.add("optin", "agreeTerms", false, '<meta name="WT.z_drug_status" content="%s"\/>');	
//	WT_Track.add("Fname", "person_firstName", false, '<meta name="WT.cg_n" content="name"\/><meta name="WT.cg_s" content= "%s"\/>');	 
//	WT_Track.add("Lname", "person_lastName", false, '<meta name="WT.cg_n" content="name"\/><meta name=\"WT.cg_s" content= "%s"\/>');	   	
//	WT_Track.add("email", "person_email", false, '<meta name="WT.cg_n" content="email"\/><meta name="WT.cg_s" content= "%s"\/>');
//	WT_Track.add("adrs", "person_homeAddress_street1", false, '<meta name="WT.cg_n" content="address"\/><meta name="WT.cg_s" content="%s"\/>');
//	WT_Track.add("adrs", "person_homeAddress_street2", false, '<meta name="WT.cg_n" content="address"\/><meta name="WT.cg_s" content="%s"\/>');	

	

// WT_Track.Debug.setLevel(4);
 WT_Track.cookieName = "signup_form";		// Must be set manually to ensure both Form and follow-up pages access same cookie.
 WT_Track.Debug.show(1,"loaded");			// Displays only when "?Debug=3" (1-5) is in the URL. 
 
 
 
