// JavaScript Document

function equalHeights(divs,removeClass) {
	var height = 0;
		
	divs.each( function(e){
		if (e.offsetHeight > height){
			height = e.offsetHeight;
		}
		if (removeClass) e.removeClass(removeClass);
	});
		
	divs.each( function(e){
		e.setStyle('height', height + 'px');
		if (e.offsetHeight > height) e.setStyle( 'height', (height - (e.offsetHeight - height)) + 'px' );
	}); 
}

function InitInputValue(form,input,value) {
 	$(input).addEvent('focus',function(){
		 if (this.value==value) this.value='';
		});
 	$(input).addEvent('blur',function(){
		 if (this.value=='') this.value=value;
		});
 	$(form).addEvent('submit',function(){
		 if ($(input).value==value) $(input).value='';
		});
  window.addEvent('domready', function(){            
   if ($(input).value=='') $(input).value=value;
  });
}
