function keiciam(obj,kl_vardas)
	{
		obj.className=kl_vardas;
	}
function perjunk(linkas)
	{
		self.location=linkas;
	}
function getObj(name)
	{
		if (document.getElementById)
  			{
    			return document.getElementById(name).style;
  			}
  		else if (document.all)
  			{
    			return document.all[name].style;
  			}
  		else if (document.layers)
  			{
    			return document.layers[name];
  			}
  		else return false;
	}
	
	
function popupas(img, w, h, alt)
{
	scr_width = screen.width;
   	scr_height = screen.Height;

   	sx = Math.round((scr_width - w) / 2);
   	sy = Math.round((scr_height - h) / 2) - 50; 
   	features = "width=" + w + ", height=" + h + ", screenx=" + sx + ", screeny=" + sy + 
   	           ", left=" + sx + ", top= " + sy; 

	langas = window.open("", "pop", features);

	textas = "<html>\n" + 
                 "<head>\n" +
                 "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1257;\">\n" +
                 "<title>Dastra</title>\n" +
                 "<link rel=\"stylesheet\" href=\"css/stilius.css\">\n" + 
                 "</head>\n" +
                 "<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" " +
                 "onBlur=\"window.close()\" bgcolor=\"#F2F6D5\" " +
                 "background=\"images/tarp.gif\" text=\"#000000\" link=\"#000000\" " +
                 "vlink=\"#000000\" alink=\"#000000\">\n" +
                 "<img src=\"" + img + "\" width=\"" + w + "\" height=\"" + h + 
                 "\" alt=\"" + alt + "\">\n" + 
                 "</body>\n" + 
                 "</html>\n";
  	langas.document.write(textas);
	langas.document.close();
	langas.focus();
}


function image_open(image_loc,width,height,title)
{
	scr_width = screen.width;
   	scr_height = screen.Height;
	if ((width==null) && (height==null))
	{
		width=280;
		height=220;
	}
   	sx = Math.round((scr_width - width) / 2);
   	sy = Math.round((scr_height - height) / 2) - 20;
   	
   	title="..::FLAXENBEATS::..";
   	
	HTML = "<html><head><title>"+title+"</title></head><body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" onBlur='self.close()'><img src='"+ image_loc +"' border=0 name=load_image></body></html>";
	popupImage = window.open('','_blank','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+width+',height='+height);
	popupImage.document.open();
	popupImage.document.write(HTML);
	popupImage.document.close();
} 

