<!--
function NewFrameset(url_virsus, url_kaire, url_centras)
{
  document.write('<html>\n');
  document.write('<head>\n');
  document.write('<meta http-equiv=\"Content-Language\" content=\"lt\">\n');
  document.write('<meta name=\"GENERATOR\" content=\"Microsoft FrontPage 5.0\">\n');
  document.write('<meta name=\"ProgId\" content=\"FrontPage.Editor.Document\">\n');
  document.write('<title>Informacijos technologijų mokymo centras</title>\n');
  document.write('<meta HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=windows-1257\">\n');
  document.write('</head>\n');

  document.write('<frameset rows=\"60,*\" border=\"0\" framespacing=\"0\" frameborder=\"NO\">\n');

  document.write('  <frame name=\"virsus\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" noresize frameborder=\"NO\" src=\"');
  document.write(url_virsus);
  document.write('\">\n');

  document.write('  <frameset cols=\"164,*\">\n');
  document.write('    <frame name=\"kaire\" target=\"center\" src=\"');
  document.write(url_kaire);
  document.write('\" scrolling=\"no\" noresize>\n');
  document.write('    <frame name=\"center\" src=\"');
  document.write(url_centras);
  document.write('\" target=\"_self\">\n');
  document.write('  </frameset>\n');
  document.write('</frameset>\n');

  document.write('</html>\n');
}

function newWind(asdf) {
  window.open(asdf, 'Testai', 'toolbar=no, status=yes, scrollbars=yes, resizable=yes, width=380, height=440, left=0, top=0');
}
function newWind2(zxcv) {
  window.open(zxcv, 'Testai', 'toolbar=no, status=yes, scrollbars=yes, resizable=yes, width=890, height=680');
}

function LaikymoLangas(linkas) {
  nPlotis = self.screen.width-30;
  nAukstis = self.screen.height-120;
  window.open(linkas, "new_win", "resizable=yes, scrollbars=no, toolbar=no, location=no, directories=no, status=no, menubar=no, width="+nPlotis+", height="+nAukstis+", top=5, left=5")
}
function redirTimer(redirURL) {
  self.setTimeout("self.location.href = redirURL;","1000");
}

function ConfirmDelete(confirmtext, url) { 
  if(confirm(confirmtext)) { 
    location.href=url; 
  }
  else { 
    return false; 
  } 
}
function timer() {
  var temp = "";
  var temp1 = ""; var temp2 = ""; var temp3 = "";
  if (sekundes >= 60) {
    sekundes=0;
    minutes++;
  }
  if (minutes >= 60) {
    minutes=0;
    valandos++;
  }
  if (valandos < 10) { temp1 = "0" + valandos; }
  else { temp1 = valandos; }
  if (minutes < 10) { temp2 = "0" + minutes; }
  else { temp2 = minutes; }
  if (sekundes < 10) { temp3 = "0" + sekundes; }
  else { temp3 = sekundes; }
  temp = temp1 + ":" + temp2 + ":" + temp3;
  sekundes++;
  document.kl_ats.vLaikas.value = temp;
  document.kl_ats.startHour.value = temp1;
  document.kl_ats.startMin.value = temp2;
  document.kl_ats.startSec.value = temp3;
  var laikas = document.getElementById("Laikas");
  laikas.innerHTML=temp;
  window.setTimeout("timer();", 1000);
}
function keisti(imgname1, imgname2, viso)
{
  objref1 = eval("document.getElementById('"+imgname1+"')");
  objref2 = eval("document.getElementById('"+imgname2+"')");

  objref1.height = objref1.height;
  objref1.width  = objref1.width + 1;

  objref2.height = objref2.height;
  objref2.width  = objref2.width - 1;

  if (objref1.width < viso)
    setTimeout("keisti('"+imgname1+"','"+imgname2+"', "+viso+")", 0);
}
function goToUrl( objRef ) {
	var url = objRef.options[objRef.selectedIndex].value;
	if (url != "") window.location = url;
	else objRef.selectedIndex = 0;
}
function LogIn(){
var MyWindow;
var MyUrl;
MyUrl = 'chat/chat.php';
MyWindow = window.open(MyUrl, "vchat", "STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESISABLE=NO,SCROLLBARS=NO,TOP=50,LEFT=20,WIDTH=600,HEIGHT=400");
}
function flip(id) {
    current = (document.getElementById(id).style.display == 'none') ? 'block' : 'none';
    document.getElementById(id).style.display = current;
}
