function showInfo(intRow) {
  var status = document.getElementById(intRow+"hid").value;
  if (status == "1") {
    document.getElementById(intRow+"h").style.display = "block";
    document.getElementById(intRow+"hid").value = "0";
  } else if (status == "0") {
    document.getElementById(intRow+"h").style.display = "none";
    document.getElementById(intRow+"hid").value = "1";
  }
}

function showToPrint(strId, strHost, strUrl, strLink) 
{
  if (strId.length != 0)
  {
    var load = window.open(strHost+'?page=9'+strLink+'&prod_id='+strId
                          ,''
                          ,'scrollbars=no,menubar=no,height=500,width=400,resizable=no,toolbar=no,location=no,status=no');
  }
}

function sendToFriend(strId, strHost, strUrl, strLink)
{
if (strId.length != 0)
  {
    var load = window.open(strHost+'?page=10'+strLink+'&prod_id='+strId
                          ,''
                          ,'scrollbars=no,menubar=no,height=500,width=400,resizable=no,toolbar=no,location=no,status=no');
  }
}

function change_pagasts(data) {
	$('id_pagasts').empty();
	if(!$defined(data))
		data = ['- -'];
	data.each(function(value, key) {
		if($defined(value)) {
			var element=new Element('option', {'value': key});
			element.setText(value);
			element.injectInside('id_pagasts');
		}
	});
}

function g(id) {
	return document.getElementById(id);
}
