var Anfrageform = Class.create();
Anfrageform.prototype = {
	initialize: function(form_id, status_feld, partner_box, wert) {
    		this.form_id = form_id;       
    		
		this.status_feld = status_feld; 
		this.partner_box = partner_box;  
		this.partner_wert = wert;
		
	        Event.observe($(this.status_feld), 'change', this.partnerchange.bindAsEventListener(this));
  	},
  
  	partnerchange: function(e) {
		Event.stop(e); 
	 	var el = Event.findElement(e, 'SELECT');
	 	
	 	if (el.options[el.selectedIndex].value == this.partner_wert) {
	 		new Effect.BlindDown(this.partner_box);
	 	} else {
	 	        new Effect.BlindUp(this.partner_box);
	 	}
	 	
  	}
  	
  	
	
}; // end class

