 function szamol()
	    {
		document.urlap.brutto.value = formaz(Math.floor(1.2 * document.urlap.netto.value));
		document.urlap.hatharminconresz.value = formaz(Math.floor(0.3 * 1.2 * document.urlap.netto.value));
		document.urlap.hatharminchavi.value = formaz(Math.floor(0.1395 * 1.2 * document.urlap.netto.value));
		document.urlap.hatharminceng.value = formaz(Math.floor(0.1345 * 1.2 * document.urlap.netto.value));
		document.urlap.hatnegyvenonresz.value = formaz(Math.floor(0.4 * 1.2 * document.urlap.netto.value));
		document.urlap.hatnegyvenhavi.value = formaz(Math.floor(0.121 * 1.2 * document.urlap.netto.value));
		document.urlap.hatnegyveneng.value = formaz(Math.floor(0.116 * 1.2 * document.urlap.netto.value));
		document.urlap.hatotvenonresz.value = formaz(Math.floor(0.5 * 1.2 * document.urlap.netto.value));
		document.urlap.hatotvenhavi.value = formaz(Math.floor(0.1021 * 1.2* document.urlap.netto.value));
		document.urlap.hatotveneng.value = formaz(Math.floor(1.2 * 0.0971 * document.urlap.netto.value));
		document.urlap.aharminconresz.value = formaz(Math.floor(1.2 * 0.3 * document.urlap.netto.value));
		document.urlap.aharminchavi.value = formaz(Math.floor(1.2 * 0.0765 * document.urlap.netto.value));
		document.urlap.aharminceng.value = formaz(Math.floor(1.2 * 0.0723 * document.urlap.netto.value));
		document.urlap.anegyvenonresz.value = formaz(Math.floor(1.2 * 0.4 * document.urlap.netto.value));
		document.urlap.anegyvenhavi.value = formaz(Math.floor(1.2 * 0.0659 * document.urlap.netto.value));
		document.urlap.anegyveneng.value = formaz(Math.floor(1.2 * 0.0617 * document.urlap.netto.value));
		document.urlap.aotvenonresz.value = formaz(Math.floor(1.2 * 0.5 * document.urlap.netto.value));
		document.urlap.aotvenhavi.value = formaz(Math.floor(1.2 * 0.0552 * document.urlap.netto.value));
		document.urlap.aotveneng.value = formaz(Math.floor(1.2 * 0.0527 * document.urlap.netto.value));
		document.urlap.ahatvanonresz.value = formaz(Math.floor(1.2 * 0.600 * document.urlap.netto.value));
		document.urlap.ahatvanhavi.value = formaz(Math.floor(1.2 * 0.0445 * document.urlap.netto.value));
		document.urlap.ahatvaneng.value = formaz(Math.floor(1.2 * 0.0420 * document.urlap.netto.value));
		document.urlap.bharminconresz.value = formaz(Math.floor(1.2 * 0.3 * document.urlap.netto.value));
		document.urlap.bharminchavi.value = formaz(Math.floor(1.2 * 0.0552 * document.urlap.netto.value));
		document.urlap.bharminceng.value = formaz(Math.floor(1.2 * 0.053 * document.urlap.netto.value));
		document.urlap.bnegyvenonresz.value = formaz(Math.floor(1.2 * 0.4 * document.urlap.netto.value));
		document.urlap.bnegyvenhavi.value = formaz(Math.floor(1.2 * 0.0478 * document.urlap.netto.value));
		document.urlap.bnegyveneng.value = formaz(Math.floor(1.2 * 0.0450 * document.urlap.netto.value));
		document.urlap.ktizenkettokaucio.value = formaz(Math.floor(1.2 * 0.35 * document.urlap.netto.value));
		document.urlap.ktizenkettohavi.value = formaz(Math.floor(1.2 * 0.0683 *  document.urlap.netto.value));
		document.urlap.ktizenkettoeng.value = formaz(Math.floor(1.2 * 0.064 *  document.urlap.netto.value));
		document.urlap.ktizennyolckaucio.value = formaz(Math.floor(1.2 * 0.35 * document.urlap.netto.value));
		document.urlap.ktizennyolchavi.value = formaz(Math.floor(1.2 * 0.0494 * document.urlap.netto.value));
		document.urlap.ktizennyolceng.value = formaz(Math.floor(1.2 * 0.0464 *  document.urlap.netto.value));
		
		}

function formaz(value)
	{
	var	pattern="###,###,##0";
	value = value + ""
	if (pattern.length==0||value=="")
	return value;
	var decpos = value.indexOf(",");
	var decpospattern = pattern.indexOf(".");
	var formattedText = ",";
	if (decpos==-1)
	{
		decpos = value.length;
		formattedText = "";
	}
	if (decpospattern==-1)
	{
		decpospattern = pattern.length;
	}
	else
	{
		formattedText = ",";
	}
	var j = decpos+1;

	for (var i = decpospattern+1; i < pattern.length; i++)
	{
	var ch = pattern.charAt(i);
	if (ch=="0")
	{
	if ( j < value.length )
	formattedText += value.charAt(j++);
	else
	formattedText += "0";
	}
	else if (ch=="#")
	{
	if ( j < value.length )
	formattedText += value.charAt(j++);
	}
	else
	{
	formattedText += ch;
	}
	}
	j = decpos-1;
	for (var i = decpospattern-1; i>=0; i--)
	{
	var ch = pattern.charAt(i);
	if (ch=="0")
	{
	if ( j >= 0 )
	formattedText = value.charAt(j--) + formattedText;
	else
	formattedText = "0" + formattedText;
	}
	else if (ch=="#")
	{
	if ( j >= 0 )
	formattedText = value.charAt(j--) + formattedText;
	}
	else if (ch==",")
	{
	if (i>0&&pattern.charAt(i-1)!="#"||j>=0)
	{
	formattedText = "." + formattedText;
	}
	}
	else
	{
	formattedText = ch + formattedText;
	}
	}
	return  formattedText.replace(/,$/g,"");
}

function delPoints(atv)
{
	var newstr = "";
	if (atv != "" && atv != undefined)
	{
		atv = "" + atv;
		for (var i = 0; i < atv.length; i++)
		{
		if (atv.charAt(i) != '.')
			{
			newstr += atv.charAt(i);
			}
		}
	}
return newstr;
}

function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}