if (institutionType === 'Academic') { Y.all( '.academic_field' ).setStyle( 'display', null ); Y.all( '.corporate_field' ).setStyle( 'display', 'none' ); Y.one( '#institution_field' ).setStyle( 'display', null ); Y.all( "input[name='institution_type']" ).set( 'value', 'Academic'); if(typeof ClickTaleExec == 'function') { alert("Hi, Academic"); ClickTaleExec("yuiObj.all( '.academic_field' ).setStyle( 'display', null );"); ClickTaleExec("yuiObj.all( '.corporate_field' ).setStyle( 'display', 'none' );"); ClickTaleExec("yuiObj.one( '#institution_field' ).setStyle( 'display', null );"); ClickTaleExec("yuiObj.all( "+'"'+"input[name='"+institution_type+"']"+'"'+" ).set( 'value', 'Academic');"); alert("Hi, Academic"); } }