function showPop(href,x,y) {
	//window.name="main_darbas_net";
	xposition=70; yposition=40;
	height=y+1;
	width=x+20;
	if ((parseInt(navigator.appVersion) >= 4 )){
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	} 
	args = "width=" + width + "," 
		    + "height=" + height + "," 
			+ "location=0," 
			+ "menubar=0,"
			+ "resizable=0,"
			+ "scrollbars=yes,"
			+ "status=0," 
			+ "titlebar=0,"
			+ "toolbar=0,"
			+ "hotkeys=0,"
			+ "screenx=" + xposition + ","  //NN Only
			+ "screeny=" + yposition + ","  //NN Only
			+ "left=" + xposition + ","     //IE Only
			+ "top=" + yposition;           //IE Only 
	
    window.open(href, '', args);
}

function showPopInfo(href, x, y) {
	//window.name="main_darbas_net";
	xposition=70; yposition=40;
	height=y+1;
	width=x+20;
	if ((parseInt(navigator.appVersion) >= 4 )){
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	} 
	args = "width=" + width + "," 
		    + "height=" + height + "," 
			+ "location=0," 
			+ "menubar=0,"
			+ "resizable=0,"
			+ "scrollbars=yes,"
			+ "status=0," 
			+ "titlebar=0,"
			+ "toolbar=0,"
			+ "hotkeys=0,"
			+ "screenx=" + xposition + ","  //NN Only
			+ "screeny=" + yposition + ","  //NN Only
			+ "left=" + xposition + ","     //IE Only
			+ "top=" + yposition;           //IE Only 
	
    window.open(href, '', args);
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
  return;
}

function na_change_img_src(name, rpath)
{
	var img = document.getElementById(name);
	//img.align = "left";
	img.altsrc = img.background;
	img.background = rpath;
	//alert (img);
	return;
}

function na_restore_img_src(name)
{
  var img = document.getElementById(name);
  img.background = img.altsrc;
  return;
}

function br_change_bgcolor(name, color)
{
	var object = document.getElementById(name);
	object.oSrc = object.bgColor;
	object.bgColor = color;
	return;
}

function br_restore_bgcolor(name)
{
  var object = document.getElementById(name);

  object.bgColor = object.oSrc;
  return;
}

function na_down_img_src(name, rpath)
{
	var img = document.getElementById(name);
	img.background = rpath;
	
}

function change_img(name, nsdoc, rpath)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}
