//jQuery.noConflict();

  //  take an element and set its should_destroy hidden field to 1 
  //  after that hide the element with class image and hide the element
function mark_for_destroy(element, type) {
  	$(element).next('.should_destroy').value = 1;
//  	$(element).hide();
  	$(element).up(type).hide();
}
  
function more_info(infoId, imageId) {
    var info = document.getElementById(infoId);
    var image = document.getElementById(imageId);

    if (info.style.display == "block" ) {
        info.style.display="none";
        image.src="/images/more_info.png";
    } else {
        info.style.display="block";
        image.src="/images/minus_info.png";
    }
}

function more_info_2(infoId, adviceId) {
  var info = document.getElementById(infoId);
  var advice = document.getElementById(adviceId);
	
  if (info.style.display == "block" ) {
    info.style.display="none";
    advice.style.display="block";
  } else {
    info.style.display="block";
    advice.style.display="none";
  }
}

function my_autocomplete_update(obj, val){
  document.getElementById(obj).value = val; 
}

function openConfirm(html_code) {
	Dialog.alert(html_code, {className: "alphacube", width:440, height:145});
}


