function OpenCertDetails(){
	thewindow = window.open('faq.htm', 'anew', config='height=585,width=637,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes');
}
function openAtest(fname){
	atestWin = window.open(fname, 'atestatas', 'width=460,height=500');
}

function getObj(name)
{
  var obj=null;
  if (document.getElementById)
  {
  	obj = document.getElementById(name);
	style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	obj = document.all[name];
	style = document.all[name].style;
  }
  else if (document.layers)
  {
	obj = getObjNN4(document,name);
	style = obj;
  }
  return obj;
}

function getObjNN4(obj,name)
{
	var x = obj.layers;
	var foundLayer;
	for (var i=0;i<x.length;i++)
	{
		if (x[i].id == name)
		 	foundLayer = x[i];
		else if (x[i].layers.length)
			var tmp = getObjNN4(x[i],name);
		if (tmp) foundLayer = tmp;
	}
	return foundLayer;
}

function submit_form(form_name, action){
	getObj(form_name).action=action;
	getObj(form_name).submit();	
}
