function Discussion ( what )
{
	var formas = document.diskusia;

	if ( what == 0 )
	{
		var lformas = formas.elements.length;

		for(var i=0;i<lformas;i++)
		{
			obj = formas.elements[i];
			if(obj.type == 'checkbox') obj.checked = true;
		}
	}else if ( what == 2 )
	{
		formas.pridat.value = 1;
	}

	formas.submit ();
}

function open_window ( url, width, height ) 
{
  var twidth = width;
  var theight = height;
  var scrollbars = 0;

  if(twidth > screen.width - 80)
  {
    twidth = screen.width - 80;
    scrollbars = 1;
  }
  if(theight > screen.height - 80)
  {
    theight = screen.height - 80;
    scrollbars = 1;
  }

  var pos_x = (screen.width - twidth - 10)/2;
  var pos_y = (screen.height - theight - 29)/2;
   
  if(typeof(source_window) == "undefined" || source_window.closed)  
    source_window = window.open( url,'source_window','menubar=0,toolbar=0,location=0,scrollbars=' + scrollbars + ',screenX='+pos_x+',screenY='+pos_y+',left='+pos_x+',top='+pos_y+',width='+twidth+',height='+theight+',resizable=0');  
  else source_window.location.href = url;
  
	source_window.focus();
}

function op ( url, height )
{
  open_window ( url, 450, height );
}

$(document).ready(function()
{
	$(".uptext").attr("role","banner");
	$(".upmenutext, .navigation").attr("role","navigation");
	$(".textfull, .textfull1, .text2").attr("role","main");
	$(".search").attr("role","search");
	$(".downtext").attr("role","contentinfo");
	$(".complementary").attr("role","complementary");	
});