function newWindow(link, wname, wwidth, wheight)
{
	if (typeof wname == "undefined")	wname	= '_blank'
	if (typeof wwidth == "undefined")	wwidth	= '768'
	if (typeof wheight == "undefined")	wheight	= '600'

	if (document.all)
		var xMax = screen.width, yMax = screen.height;
	else if(document.layers)
		var xMax = window.outerWidth, yMax = window.outerHeight;
	else
		var xMax = 640, yMax = 480;

	var xOffset = ((xMax-wwidth)/2), yOffset = ((yMax-wheight)/2-30);
	param='scrollbars=yes, toolbar=no, width='+wwidth+', height='+wheight+', resizable=yes, directories=no, location=no, menubar=no, status=no, screenX='+xOffset+', screenY='+yOffset+', top='+yOffset+', left='+xOffset;

	window.open("print.php"+link, wname, param);
}

function printmouseover(obj)
{
	obj.style.textDecoration="underline";
}

function printmouseout(obj)
{
	obj.style.textDecoration="";
}

function vecmouseover(obj)
{
	obj.style.textDecoration="underline";
}

function vecmouseout(obj)
{
	obj.style.textDecoration="";
}

function vec3MouseOver(obj)
{
	obj.style.textDecoration="underline";
}

function vec3MouseOut(obj)
{
	obj.style.textDecoration="";
}

function vec_valuteMouseOver(obj)
{
	obj.style.textDecoration="underline";
		
}

function vec_valuteMouseOut(obj)
{
	obj.style.textDecoration="";
}

function potrdiMouseOver(obj, barva)
{
	obj.src='images/gumb_potrdi_'+barva+'_1.gif';
}

function potrdiMouseOut(obj, barva)
{
	obj.src='images/gumb_potrdi_'+barva+'.gif';
}

function picMouseOver(obj, pic)
{
	obj.src='images/'+pic+'_1.gif';
}

function picMouseOut(obj, pic)
{
	obj.src='images/'+pic+'.gif';
}

function MouseOver(obj)
{
	obj.style.textDecoration="underline";
	return true;
}

function MouseOut(obj)
{
	obj.style.textDecoration="";
	status='';
}

function onMenu(obj) {
  obj.style.backgroundColor='#FFFFC3';
} 

function offMenu(obj) {
  obj.style.backgroundColor='#FFFFFF';
}

function onlyNumbers(sText,size)
{
   var ValidChars = "0123456789";
   var Char;

   char = sText.value.charAt(sText.value.length-1); 
   if (ValidChars.indexOf(Char) == -1) {
     sText.value = sText.value.substring(0,sText.value.length-1);
   }
   if (sText.value.length>size) {
     sText.value = sText.value.substring(0,size);
   }
}

