function winopen_pic(picURL, width, height)
{
  cxWindow = width;
  cyWindow = height;
  posxWindow = (window.screen.width - cxWindow) / 2;
  posyWindow = (window.screen.height - cyWindow) / 2;

  myWindow = window.open("", "newWindow","height=" + cyWindow + ", width=" + cxWindow + ", left=" + posxWindow + ", top=" + posyWindow + ", screenX=" + posxWindow + ", screenY=" + posyWindow + ", resizable=yes, scrollbars=no, toolbar=no, status=no");
     
  myWindow.document.write ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<HTML>\n<HEAD>\n<TITLE>" + picURL + "</TITLE>\n</HEAD>\n<BODY TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 BGCOLOR=\"#00000\">\n");
  myWindow.document.write ("<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=\"100%\" HEIGHT=\"100%\"><TR><TD ALIGN=CENTER VALIGN=MIDDLE>");
  myWindow.document.write ("<IMG SRC= \"" + picURL + "\">");
  myWindow.document.write ("</TD></TR></TABLE>\n");
  myWindow.document.write ("</BODY>\n</HTML>\n"); 
}

function winopen_url(url)
{
  cxWindow = (window.screen.width / 4) * 3;
  cyWindow = (window.screen.height / 4) * 3;
  posxWindow = (window.screen.width - cxWindow) / 2;
  posyWindow = (window.screen.height - cyWindow) / 2;

  myWindow = window.open("", "myWindow","height=" + (cyWindow - 50) + ", width=" + cxWindow + ", left=" + posxWindow + ", top=" + posyWindow + ", screenX=" + posxWindow + ", screenY=" + posyWindow + ", resizable=yes, scrollbars=yes, toolbar=no, status=yes");

  myWindow.document.write ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<title></title>\n");
  myWindow.document.write ("<frameset>\n<frame src=\"" + url + "\">\n</frameset>\n");
  myWindow.document.write ("</head>\n");
  myWindow.document.write ("</html>\n"); 
}


function stateChecker(row_id) {

  for (var i = 0; i < document.pokus.article_id.length; i++) {
	rowNum = "row_" + document.pokus.article_id[i].value;
    document.all[rowNum].style.background = "#ffffff";
  }

  document.all[row_id].style.background = "#def2fa";
}


function indent_block(tag_id, img_id)
{
  img_element = document.getElementById(img_id);
  tag_element = document.getElementById(tag_id);
    
  if (tag_element.className == 'tmIndentClose') {
    img_element.src = 'images/bul_minus.gif';
    tag_element.className = 'tmIndentOpen';
  } else {
    img_element.src = 'images/bul_plus.gif';
    tag_element.className = 'tmIndentClose';
  }
}


function select_sign(sel_name)
{
  selection = document.oForm[sel_name];
  
  for (i = 0, iOptions = selection.options.length; i < iOptions; i++) {

    sign_element = document.getElementById('sign_' + selection.options[i].value);

    if(selection.options[i].selected == true)
	  sign_element.style.display = 'block';
	else
	  sign_element.style.display = 'none';
  }
	  
}