var DataJS =
{

    template: null ,

    template_NorthBroward:
    {
        demos: 1 ,
        formEntry: 1 ,
        alertto: "lrosenfarb@imacs.org; tkaufman@imacs.org" ,
        alertsubject: "Landing Page Submission (NorthBroward)" ,
        sendsubject: "IMACS Free Class Confirmation" ,
        demoReporter: DataMiscJS.getReportDemoStandard( "demoRadioGroup" ) ,
        demoValidator: DataMiscJS.getValidateDemoStandard( "demoRadioGroup" , "Please choose a date." ) , // change to trial or whatever the parent should see
        displayThanks: function( data ) {window.location = "http://www.imacs.org/SummerCamp/Thanks.htm";} 

    } ,

    template_BrowardCamp:
    {
        demos: 1 ,
        formEntry: 2 ,
        alertto: "lrosenfarb@imacs.org; tkaufman@imacs.org" ,
        alertsubject: "Landing Page Submission: BrowardCamp (Adwords)" ,
        sendsubject: "IMACS Free Class Confirmation" ,
        demoReporter: DataMiscJS.getReportDemoStandard( "demoRadioGroup" ) ,
        demoValidator: DataMiscJS.getValidateDemoStandard( "demoRadioGroup" , "Please choose a date." ) , // change to trial or whatever the parent should see
        displayThanks: function( data ) {window.location = "http://www.imacs.org/SummerCamp/Thanks.htm";} 

    } ,

    template_Camp:
    {
        demos: 1 ,
        formEntry: 1 ,
        alertto: "lrosenfarb@imacs.org; tkaufman@imacs.org" ,
        alertsubject: "Landing Page Submission: Camp (Sports & Activities Directory OR Cont. Chinese School flyers OR online listings)" ,
        sendsubject: "IMACS Free Class Confirmation" ,
        demoReporter: DataMiscJS.getReportDemoStandard( "demoRadioGroup" ) ,
        demoValidator: DataMiscJS.getValidateDemoStandard( "demoRadioGroup" , "Please choose a date." ) , // change to trial or whatever the parent should see
        displayThanks: function( data ) {/*window.location = "http://www.imacs.org/SummerCamp/Thanks.htm";*/ alert( "Thank you!" ); } 

    } ,

    template_CampOpenHouse:
    {
        demos: 1 ,
        formEntry: 2 ,
        alertto: "lrosenfarb@imacs.org; tkaufman@imacs.org" ,
        alertsubject: "Landing Page Submission: CampOpenHouse (bulk email)" ,
        sendsubject: "IMACS Free Class Confirmation" ,
        demoReporter: DataMiscJS.getReportDemoStandard( "demoRadioGroup" ) ,
        demoValidator: DataMiscJS.getValidateDemoStandard( "demoRadioGroup" , "Please choose a date." ) , // change to trial or whatever the parent should see
        displayThanks: function( data ) {window.location = "http://www.imacs.org/SummerCamp/Thanks.htm";} 

    } , 



    template_IC:
    {
        demos: 1 ,
        formEntry: 1 ,
        alertto: "lrosenfarb@imacs.org; tkaufman@imacs.org" ,
        alertsubject: "Landing Page Submission: IC (IC bulk email OR campresource.com)" ,
        sendsubject: "IMACS Free Class Confirmation" ,
        demoReporter: DataMiscJS.getReportDemoStandard( "demoRadioGroup" ) ,
        demoValidator: DataMiscJS.getValidateDemoStandard( "demoRadioGroup" , "Please choose a date." ) , // change to trial or whatever the parent should see
        displayThanks: function( data ) {window.location = "http://www.imacs.org/SummerCamp/Thanks.htm";} 

    } ,

    template_LifePub:
    {
        demos: 1 ,
        formEntry: 2 ,
        alertto: "lrosenfarb@imacs.org; tkaufman@imacs.org" ,
        alertsubject: "Landing Page Submission: LifePub" ,
        sendsubject: "IMACS Free Class Confirmation" ,
        demoReporter: DataMiscJS.getReportDemoStandard( "demoRadioGroup" ) ,
        demoValidator: DataMiscJS.getValidateDemoStandard( "demoRadioGroup" , "Please choose a date." ) , // change to trial or whatever the parent should see
        displayThanks: function( data ) {window.location = "http://www.imacs.org/SummerCamp/Thanks.htm";} 

    } ,

    template_MarchOpenHouse:
    {
        demos: 1 ,
        formEntry: 1 ,
        alertto: "lrosenfarb@imacs.org; tkaufman@imacs.org" ,
        alertsubject: "Landing Page Submission: MarchOpenHouse (IMACS Web page OR Family Magazine)" ,
        sendsubject: "IMACS Free Class Confirmation" ,
        demoReporter: DataMiscJS.getReportDemoStandard( "demoRadioGroup" ) ,
        demoValidator: DataMiscJS.getValidateDemoStandard( "demoRadioGroup" , "Please choose a date." ) , // change to trial or whatever the parent should see
        displayThanks: function( data ) {window.location = "http://www.imacs.org/SummerCamp/Thanks.htm";} 

    } ,

    template_OH:
    {
        demos: 1 ,
        formEntry: 1 ,
        alertto: "lrosenfarb@imacs.org; tkaufman@imacs.org" ,
        alertsubject: "Landing Page Submission: OH (mysummercamps.com OR PTA flyers OR Somerset Flyers OR St. Mark's Flyers)" ,
        sendsubject: "IMACS Free Class Confirmation" ,
        demoReporter: DataMiscJS.getReportDemoStandard( "demoRadioGroup" ) ,
        demoValidator: DataMiscJS.getValidateDemoStandard( "demoRadioGroup" , "Please choose a date." ) , // change to trial or whatever the parent should see
        displayThanks: function( data ) {window.location = "http://www.imacs.org/SummerCamp/Thanks.htm";} 

    } ,

    template_OpenHouse:
    {
        demos: 1 ,
        formEntry: 1 ,
        alertto: "lrosenfarb@imacs.org; tkaufman@imacs.org" ,
        alertsubject: "Landing Page Submission: OpenHouse (BFL) OR camppage.com" ,
        sendsubject: "IMACS Free Class Confirmation" ,
        demoReporter: DataMiscJS.getReportDemoStandard( "demoRadioGroup" ) ,
        demoValidator: DataMiscJS.getValidateDemoStandard( "demoRadioGroup" , "Please choose a date." ) , // change to trial or whatever the parent should see
        displayThanks: function( data ) {window.location = "http://www.imacs.org/SummerCamp/Thanks.htm";} 

    } ,

 template_summer:
    {
        demos: 1 ,
        formEntry: 1 ,
        alertto: "lrosenfarb@imacs.org; tkaufman@imacs.org" ,
        alertsubject: "Landing Page Submission: summer (Mailer)" ,
        sendsubject: "IMACS Free Class Confirmation" ,
        demoReporter: DataMiscJS.getReportDemoStandard( "demoRadioGroup" ) ,
        demoValidator: DataMiscJS.getValidateDemoStandard( "demoRadioGroup" , "Please choose a date." ) , // change to trial or whatever the parent should see
        displayThanks: function( data ) {window.location = "http://www.imacs.org/SummerCamp/Thanks.htm";} 

    } ,


    template_SummerCamp:
    {
        demos: 1 ,
        formEntry: 2 ,
        alertto: "lrosenfarb@imacs.org; tkaufman@imacs.org" ,
        alertsubject: "Landing Page Submission: SummerCamp (SFP)" ,
        sendsubject: "IMACS Free Class Confirmation" ,
        demoReporter: DataMiscJS.getReportDemoStandard( "demoRadioGroup" ) ,
        demoValidator: DataMiscJS.getValidateDemoStandard( "demoRadioGroup" , "Please choose a date." ) , // change to trial or whatever the parent should see
        displayThanks: function( data ) {window.location = "http://www.imacs.org/SummerCamp/Thanks.htm";} 

    } ,


 template_summerdiscount:
    {
        demos: 1 ,
        formEntry: 1 ,
        alertto: "lrosenfarb@imacs.org; tkaufman@imacs.org" ,
        alertsubject: "Landing Page Submission: summerdiscount (public school flyers)" ,
        sendsubject: "IMACS Free Class Confirmation" ,
        demoReporter: DataMiscJS.getReportDemoStandard( "demoRadioGroup" ) ,
        demoValidator: DataMiscJS.getValidateDemoStandard( "demoRadioGroup" , "Please choose a date." ) , // change to trial or whatever the parent should see
        displayThanks: function( data ) {window.location = "http://www.imacs.org/SummerCamp/Thanks.htm";} 

    } ,

 template_WestonOpenHouse:
    {
        demos: 1 ,
        formEntry: 1 ,
        alertto: "lrosenfarb@imacs.org; tkaufman@imacs.org" ,
        alertsubject: "Landing Page Submission: Weston Open House (Sgmt bulk email)" ,
        sendsubject: "IMACS Free Class Confirmation" ,
        demoReporter: DataMiscJS.getReportDemoStandard( "demoRadioGroup" ) ,
        demoValidator: DataMiscJS.getValidateDemoStandard( "demoRadioGroup" , "Please choose a date." ) , // change to trial or whatever the parent should see
        displayThanks: function( data ) {window.location = "http://www.imacs.org/SummerCamp/Thanks.htm";} 

    } ,

    formEntries:
    [
        {
            key: "parentname" ,
            exclude: [] , // can use include or exclude
            displayer: DataMiscJS.getDisplayFormEntryStandard( "formEntriesDiv" , "Parent's Name"  , "parentname" ) ,
            reporter: DataMiscJS.getReportTrimmed( "parentname" , "parentname" ),
            validator: DataMiscJS.getValidateParentName( "parentname" )
        } ,
        {
            key: "address" ,
            exclude: [] , // can use include or exclude
            displayer: DataMiscJS.getDisplayFormEntryTwoLines( "formEntriesDiv" , "Address"  , "address" ) ,
            reporter: DataMiscJS.getReportTwoLines( "address" , "address" ),
            validator: function( datum ) { return DataMiscJS.validateThing( datum ,
                                            "address1" , "address" ,
                                            function( datum ) {return datum.length > 4;} );}
        } ,
        {
            key: "city" ,
            exclude: [] , // can use include or exclude
            displayer: DataMiscJS.getDisplayFormEntryStandard( "formEntriesDiv" , "City"  , "city" ) ,
            reporter: DataMiscJS.getReportTrimmed( "city" , "city" ),
            validator: function( datum ) { return DataMiscJS.validateThing( datum ,
                                            "city" , "city" ,
                                            function( datum ) {return datum.length > 0;} );}
        } ,
        { // displays state and zip, but only reports and validates state
            key: "state" ,
            exclude: [] , // can use include or exclude
            displayer: DataMiscJS.getDisplayFormEntry2For1( "formEntriesDiv" , "State"  , "state" , "Zip" , "zip" ) ,
            reporter: DataMiscJS.getReportTrimmed( "state" , "state" ),
            validator: function( datum ) { return DataMiscJS.validateThing( datum ,
                                            "state" , "state" ,
                                            function( datum ) {return datum.length > 1;} );}
        } ,
        { // reports and validates, but does not display
            key: "zip" ,
            exclude: [] , // can use include or exclude
            displayer: function() {} ,
            reporter: DataMiscJS.getReportDigits( "zip" , "zip" ) ,
            validator: DataMiscJS.getValidateZip( "zip" )
        } ,
        {
            key: "phone" ,
            exclude: [] , // can use include or exclude
            displayer: DataMiscJS.getDisplayFormEntryStandard( "formEntriesDiv" , "Phone"  , "phone" ) ,
            reporter: DataMiscJS.getReportDigits( "phone" , "phone" ) ,
            validator: DataMiscJS.getValidatePhone( "phone" )
        } ,
        {
            key: "email" ,
            exclude: [] , // can use include or exclude
            displayer: DataMiscJS.getDisplayFormEntryStandard( "formEntriesDiv" , "Parent's Email"  , "email" ) ,
            reporter: DataMiscJS.getReportTrimmed( "email" , "email" ),
            validator: DataMiscJS.getValidateEmail( "email" )
        } ,
        {
            key: "childnames" ,
            exclude: [] , // can use include or exclude
            displayer: DataMiscJS.getDisplayFormEntryStandard( "formEntriesDiv" ,
                "Children&#8217;s Names<br/><span style='font-size: smaller'>(Separate additional names with a comma.)</span>"  ,
                "childnames" ) ,
            reporter: DataMiscJS.getReportTrimmed( "childnames" , "childnames" ),
            validator: function( datum ) { return DataMiscJS.validateThing( datum ,
                                            "childnames" , "children&#8217;s names" ,
                                            function( datum ) {return datum.length > 0;} );}
        } ,
        { // displays age and grade, but only reports and validates age
            key: "age" ,
            exclude: [] , // can use include or exclude
            displayer: DataMiscJS.getDisplayFormEntry2For1( "formEntriesDiv" , "Age(s)"  , "age" , "Grade(s)" , "grade" ) ,
            reporter: DataMiscJS.getReportDigits( "age" , "age" ),
            validator: function( datum ) { return DataMiscJS.validateThing( datum ,
                                            "age" , "age" ,
                                            function( datum ) {return datum.length > 0;} );}
        } ,
        { // reports and validates, but does not display
            key: "grade" ,
            exclude: [] , // can use include or exclude
            displayer: function() {} ,
            reporter: DataMiscJS.getReportDigits( "grade" , "grade" ) ,
            validator: function( datum ) { return DataMiscJS.validateThing( datum ,
                                            "grade" , "grade" ,
                                            function( datum ) {return datum.length > 0;} );}
        } ,
        {
            key: "school" ,
            exclude: [] , // can use include or exclude
            displayer: DataMiscJS.getDisplayFormEntryStandard( "formEntriesDiv" , "School(s)"  , "school" ) ,
            reporter: DataMiscJS.getReportTrimmed( "school" , "school" ),
            validator: function( datum ) { return DataMiscJS.validateThing( datum ,
                                            "school" , "school" ,
                                            function( datum ) {return datum.length > 1;} );}
        } ,
        {
            key: "source" ,
            exclude: [2] , // can use include or exclude
            displayer: DataMiscJS.getDisplayTextAreaStandard( "formEntriesDiv" , "How did you hear about us?"  , "source" ) ,
            reporter: DataMiscJS.getReportTrimmed( "source" , "source" ),
            validator: function( datum ) { return DataMiscJS.validateThing( datum ,
                                            "source" , "source" ,
                                            function( datum ) {return datum.length > 0;} ,
                                            "Please tell us how you heard about us." );}
        } 

        
    ] ,

    demos:
    [
    

 /*  {
            exclude: [] ,
            getSendMessage: EmailTemplatesJS.getGetSendMessage( "PLQ5a" ) ,
            data:
            {
                day: 'Saturday' ,
                date: 'June 26th' ,
                time: '10:00am' ,
                location: 'Plantation' ,
                demoAnythingYouWant: 'memo' ,
                demoemail: 'PLQ5'

            } ,
            textForUser: '<span style="color:#911B2B">Sat, June 26, 10:00am</span> - <strong>Plantation</strong>. Free<strong style="color:#911B2B"> Open House</strong> - entering <strong>1st - 10th grade.</strong>' ,
            displayer: DataMiscJS.getDisplayDemoStandard( 'demoRadioGroup' )
        }, 

*/


/*
    {
            exclude: [] ,
            getSendMessage: EmailTemplatesJS.getGetSendMessage( "CCQ5" ) ,
            data:
            {
                day: 'Tuesday' ,
                date: 'July 6th' ,
                time: '10:00am' ,
                location: 'Coconut Creek' ,
                demoAnythingYouWant: 'memo' ,
                demoemail: 'CCQ5'

            } , 
            textForUser: 'Tues, July 6, 10:00am - <strong>Coconut Creek</strong>' ,
            displayer: DataMiscJS.getDisplayDemoStandard( 'demoRadioGroup' )
        } ,

*/
     
  

/*

  {
            exclude: [] ,
            getSendMessage: EmailTemplatesJS.getGetSendMessage( "PLQ5" ) ,
            data:
            {
                day: 'Friday' ,
                date: 'July 9th' ,
                time: '10:00am' ,
                location: 'Plantation' ,
                demoAnythingYouWant: 'memo' ,
                demoemail: 'PLQ5'

            } ,
            textForUser: 'Fri, July 9, 10:00am</span> - <strong>Plantation</strong>' ,
            displayer: DataMiscJS.getDisplayDemoStandard( 'demoRadioGroup' )
        } ,

*/

                
 {
            exclude: [] ,
            getSendMessage: EmailTemplatesJS.getGetSendMessage( "PLQ5" ) ,
            data:
            {
                day: 'Tuesday' ,
                date: 'August 10th' ,
                time: '4:45pm' ,
                location: 'Plantation' ,
                demoAnythingYouWant: 'memo' ,
                demoemail: 'PLQ5'

            } ,
            textForUser: 'Tues, August 10, 4:45pm</span> - <strong>Plantation</strong>' ,
            displayer: DataMiscJS.getDisplayDemoStandard( 'demoRadioGroup' )
        },

 {
            exclude: [] ,
            getSendMessage: EmailTemplatesJS.getGetSendMessage( "PLQ5" ) ,
            data:
            {
                day: 'Thursday' ,
                date: 'August 12th' ,
                time: '5:00pm' ,
                location: 'Plantation' ,
                demoAnythingYouWant: 'memo' ,
                demoemail: 'PLQ5'

            } ,
            textForUser: 'Thurs, August 12, 5:00pm</span> - <strong>Plantation</strong>' ,
            displayer: DataMiscJS.getDisplayDemoStandard( 'demoRadioGroup' )
        },

 {
            exclude: [] ,
            getSendMessage: EmailTemplatesJS.getGetSendMessage( "PLQ5" ) ,
            data:
            {
                day: 'Friday' ,
                date: 'August 13th' ,
                time: '5:00pm' ,
                location: 'Plantation' ,
                demoAnythingYouWant: 'memo' ,
                demoemail: 'PLQ5'

            } ,
            textForUser: 'Fri, August 13, 5:00pm</span> - <strong>Plantation</strong>' ,
            displayer: DataMiscJS.getDisplayDemoStandard( 'demoRadioGroup' )
        }




    ] 

};

