
function DraugiemSay( title, url, titlePrefix ){
  window.open('http://www.draugiem.lv/say/ext/add.php?title=' + encodeURIComponent( title ) + '&link=' + encodeURIComponent( url ) + ( titlePrefix ? '&titlePrefix=' + encodeURIComponent( titlePrefix ) : '' ), '', 'location=1,status=1,scrollbars=0,resizable=0,width=530,height=400' );
  return false;
}

function popup (file)
{
  var dati = 'toolbar=no,status=no,location=no,menubar=no,scrollbars=yes,width=500,height=350,'+center_window(500,350);
  window.open (file, 'popap', dati);
}

function center_window (w, h)
{
  var left = Math.round (screen.availWidth / 2) - Math.round (w / 2);
  var top = Math.round (screen.availHeight / 2) - Math.round (h / 2);
  return 'left='+left+',top='+top;
}

function on(nos)
{
  if (document.images) {document[nos].src = eval(nos + "on.src"); }
}

function off(nos)
{
  if (document.images) {document[nos].src = eval(nos + "off.src");}
}

function goBookmark (f)
{
  window.location = "#" + f;
}

function redir(s){
	var d = s.options[s.selectedIndex].value;
	window.self.location.href = d;
	s.selectedIndex=0;
}