candidaturas_s3= function()
{
	var l	=	candidaturas_imod_lang;
	
	var addOpt	=	function(){
			if(Ext.getCmp("uText_actual_curso"))
				return;
				
			var p = Ext.getCmp('step_3');
			
			var newEl	=	{
						xtype		:'textfield'
						,fieldLabel	: l.explicitar
						,name		: 'uText_actual_curso'
						,id			: 'uText_actual_curso'
						,maxLength	: 250
						,minLength	: 3
						,allowBlank: 0
						//,anchor		:'95%'
						,width:		300
					}
			for( var i = 0 ; i < p.items.items.length ; i++ ){
				if( p.items.items[i].id == "actual_curso" ){
					p.insert( i + 1, newEl );
					p.doLayout();
					return;
				}
			}
			p.doLayout();
		}


	var removeOpt	=	function(){
			var el	=	Ext.getCmp("uText_actual_curso")
			//var p	=	Ext.getCmp("step_0")
			if(!el)
				return;
			
			var v1	=	parseInt(Ext.getCmp("actual_curso").getValue())
			if((v1!=1000))
			{
				var p =	el.ownerCt;
				p.remove(el);
				p.doLayout(true);
			}
			
		}

	
	return new Ext.Panel({
	
		xtype		: "panel"
		,id			: "step_3"
		,title		: l.situacao_escolar_title
		,border		: false
		,layout		: "form"
		,anchor		: '100%'
		,bodyStyle	: 'padding: 20px;'
		,labelWidth: 250
		//,collapsible:	true
		,defaults: {
				//,anchor: '50%'
				width: 300
				,maxLength	: 250
				,allowBlank: false
				,msgTarget: 'side'
			}
		,items		:[
			
//			{
//				xtype		:'textfield'
//				,fieldLabel	: l.actual_curso
//				,name		: 'actual_curso'
//				,id			: 'actual_curso'
//				,allowBlank : 1
//			}
			{
				fieldLabel:			l.actual_curso
				,name:				'actual_curso'
				,id:				'actual_curso'
				,allowBlank:		false
				,border       : false
				,listWidth:			300
				,width:				300
				,hiddenName:		'hidden_actual_curso'
				,grow:true
				//,value	:	"F"
				,store: new Ext.data.SimpleStore({
						'id': 0
						,fields: ['value', 'lable']
						,data :  actual_curso_data
						})
				,mode:				'local'
				,editable:			false
				,valueField:		'value'
				,displayField:		'lable'
				,xtype:				'combo'
				,typeAhead:			false
				,triggerAction:		'all'
				,forceSelection:	true
				,emptyText:			'Seleccione uma opção...'
				,listeners: {
					render: function(me) {
					  //me.setValue("1")
					}
					,select:function(me) {
						if(parseInt(me.getValue())==1000)
							addOpt();
							removeOpt();
					}
				}
			}

			,{
				fieldLabel:			l.actual_ano
				,name:				'actual_ano'
				,id:				'actual_ano'
				,allowBlank:		0
				,border       : false
				,listWidth:			100
				,width:				100
				,hiddenName:		'hidden_actual_ano'
				,grow:true
				//,value	:	"F"
				,store: new Ext.data.SimpleStore({
						'id': 0
						,fields: ['value', 'lable']
						,data :  [
								  ["null","Nenhuma"]
								  ,[1,1]
								  ,[2,2]
								  ,[3,3]
								  ,[3,3]
								  ,[4,4]
								  ,[5,5]
								  ,[6,6]
								  ,[7,7]
								  ,[8,8]
								  ,[9,9]
								  ,[10,10]
								  ,[11,11]
								  ,[12,12]
								  ]
						})
				,mode:				'local'
				,editable:			false
				,valueField:		'value'
				,displayField:		'lable'
				,xtype:				'combo'
				,typeAhead:			false
				,triggerAction:		'all'
				,forceSelection:	true
				,emptyText:			'Seleccione uma opção...'
				,listeners: {
					render: function(me) {
					  //me.setValue("null")
					}
					,select:function(me) {
						if(parseInt(me.getValue())==1000)
							addOpt();
							removeOpt();
					}
				}
			}
			,{
				xtype		:'textfield'
				,allowBlank :		1
				,fieldLabel	: l.actual_escola
				,name		: 'actual_escola'
				,id			: 'actual_escola'
			}
			/*
			
			,{
				xtype		:'textfield'
				,fieldLabel	: l.actual_habilitMusicais
				,name		: 'actual_habilitMusicais'
				,id			: 'actual_habilitMusicais'
				,allowBlank : 1
			}
			,{
				xtype		:'textfield'
				,fieldLabel	: l.actual_habilitaDaEscola
				,name		: 'actual_habilitaDaEscola'
				,id			: 'actual_habilitaDaEscola'
				,allowBlank : 1
			}
			*/
		]
	});	
}
