var Curso = new Class({
	getCursoByEstado: function(estado)
	{
		//new Util().call('curso/getByEstado/'+estado,null,new Curso().mountGetCursoByEstado);
		window.location= 'http://www.infolev.com.br/curso/lista/'+estado;
	},	
	mountGetCursoByEstado: function(response)
	{
		alert(response['estado']);
	},
	getCidadeByEstado: function(id)
	{
		util.callHTML('cidade/getByEstado/'+id.value,null,new Curso().mountdropCidade);
	},
	mountdropCidade: function(response)
	{
		if(response)
		{
			$('cidade').innerHTML = response;
		}		
	},
	novaImagem: function(){
			
		var novadiv = document.createElement('div');
		novadiv.id = 'novadiv';	
		
		var input_file = document.createElement('INPUT');
		input_file.type = 'file';
		input_file.name = 'arquivo[]';	
		
		novadiv.appendChild(input_file);
		
		document.getElementById("dom_input").appendChild(novadiv);
	},
	remover: function()
	{
		var novadiv = document.getElementById("novadiv");
		document.getElementById("dom_input").removeChild(novadiv);
	}
});
