/* 
   produtos 
   21/06/2007
*/ 
var buscaProdutos = {
  sClass: 'editor/class.produtos.php',
  sItem: 'produtos',
  sFiltro: '',
  sTemplate: '../../editor/lista.tpl',
  iMax: 30,
  categoria: function(id){
    this.cat = id;
	this.look('categoria=' + id);
  },
  choose: function(id){
    window.location="produtos.php?id=" + id;
	//alert(id);
  },
  setPost: function(filtro){
   var toPost = '';
   toPost += 'sClass=' + this.sClass + '&' +
	        'sItem=' + this.sItem + '&' +
			'sFiltro=' + filtro + '&' +
			'sTemplate=' + this.sTemplate + '&' +
			'iMax=' + this.iMax  + '&' +
			'categoria=' + this.cat;
	return toPost;
  }};
Object.extend(lookUp.prototype, buscaProdutos);
oProduto = new lookUp('produto', '', 'solucionator.php');
