var ContactsForm_Control = new function() {

    this.controlUrl = 'it:control=ContactsForm';
    
    var self = this;
	
	this.initControl = function(){
		
		$('.contactBlock input').focus(function(){$(this).parent().addClass('filled')});
		$('.contactBlock input').blur(function(){$(this).parent().removeClass('filled')});
		$('#contacts_form').submit(function(){
			var sc_e = $('input[type=hidden][name=saltcode]');
			var sc_v = sc_e.val();
			sc_e.after('<input type="hidden" name="saltval" value="'+MD5(sc_v)+'">');
			return true;
		});
	};
	
	
};
