// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function insertHintForTextField(textFieldId, hintText) {

	$(textFieldId).setStyle({color:'#666'});  

	$(textFieldId).value = hintText;

	$(textFieldId).observe('focus', function() {
	  if (this.value == hintText) {
	    this.value = '';
	    this.setStyle({color:'#000'});
	  }
	});
	$(textFieldId).observe('blur', function() {
	  if (this.value == '') {
	    this.value = hintText;
	    this.setStyle({color:'#666'});
	  }
	});

}

function popwin(url) {
  var load = window.open(url,'','scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes,location=yes,status=yes');
}