function show_piezimes(tabl)
{
	if(document.getElementById(tabl).style.display == "none")
	{
		document.getElementById(tabl).style.display="block";
		document.getElementById(tabl+'_button').style.display="block";
	}
	else
	{
	 	document.getElementById(tabl).style.display="none";
		document.getElementById(tabl).value="";
		document.getElementById(tabl+'_button').style.display="none";
	}
}

function openNewOrder(Xx,Yy,section){
	var width = Xx;
	var height = Yy;
	var l = ( screen.width - width )/2;
	var t = ( screen.height - height )/2 - 20;
	url = "index.php?sec="+section;
	window.open( url, "_blank", "status=0,toolbar=0,scrollbars=1,resizable=0,left=10,top=10,width="+width+",height="+height );
}

function openContinueOrder(Xx,Yy,section,Idd){
	var width = Xx;
	var height = Yy;
	var l = ( screen.width - width )/2;
	var t = ( screen.height - height )/2 - 20;
	url = "index.php?sec="+section+"&id="+Idd;
	window.open( url, "_blank", "" );
}

function openNoliktava(section,id){

	var l = screen.width-10;
	var t =  screen.height-10;
	url = "index.php?sec="+section+"&id="+id;;
	window.open( url, "_blank", "status=1,toolbar=1,scrollbars=1,resizable=1,left=10,top=10,width="+(screen.width-200)+",height="+(screen.height/2) );
}
function openOpenPrint(section){

	var l = screen.width-10;
	var t =  screen.height-10;
	url = "index.php?sec="+section;
	window.open( url, "_blank", "status=1,toolbar=1,scrollbars=1,resizable=1" );
}
function openOpenWind(Xx,Yy,section){
	var width = Xx;
	var height = Yy;
	var l = ( screen.width - width )/2;
	var t = ( screen.height - height )/2 - 20;
	url = "index.php?sec="+section;
	window.open( url, "_blank", "status=1,toolbar=0,scrollbars=1,resizable=1,left=10,top=10,width="+width+",height="+height );
}
function openAkcijasWind(Xx,Yy,section,Idd){
	var width = Xx;
	var height = Yy;
	var l = ( screen.width - width )/2+50;
	var t = ( screen.height - height )/2 - 20+50;
	url = "index.php?sec="+section+"&id="+Idd;
	window.open( url, "_blank", "" );
}
function openPirkt(section,idd)
{
	url = 'index.php?sec='+section+'&id='+idd;
	window.open( url, "_blank", "status=1,toolbar=1,scrollbars=1,resizable=1,left=10,top=10,width="+(screen.width-100)+",height="+(screen.height-100) );
}

function openVirtual(section,idd)
{
	url = 'index.php?sec='+section+'&id='+idd;
	window.open(url, "_blank", "");
}
