<!--

var globalprice=0;
var gbphuf = 350;
var eurhuf = 292;
var usdhuf = 222;
var huf = 6500;

	if (document.getElementById('gbphuf')) {
		document.getElementById('gbphuf').innerHTML = gbphuf;
	}
	if (document.getElementById('eurhuf')) {
		document.getElementById('eurhuf').innerHTML = eurhuf;
	}
		if (document.getElementById('usdhuf')) {
		document.getElementById('usdhuf').innerHTML = usdhuf;
	}

	if (document.getElementById('gbphuf')) {
		document.getElementById('gbphuf').value= gbphuf;
	}
	if (document.getElementById('eurhuf')) {
		document.getElementById('eurhuf').value = eurhuf;
	}
		if (document.getElementById('usdhuf')) {
		document.getElementById('usdhuf').value = usdhuf;
	}

function calcprice() {
	var persons = document.getElementById('persons').value;
	var airport = document.getElementById('route').value;
	var currency = document.getElementById('currency').value;
	var price = 0;	
	
	 	if (airport == 'ferihegy-bp' || airport == 'bp-ferihegy' || airport == 'bpa-dock' || airport == 'dock-bpa') {
			var price = 6500; 
			if (persons<1) price = 0; 
      if (persons<3) price = 6500;            
      if (persons>3) price = 7000;
      if (persons>4) price = 9000; 
      if (persons>8) price = 18400; 
      if (persons>16) price = 27600;
      if (persons>24) price = 40000;
      if (persons>32) price = 0;  
		}
		else if (airport == 'rtkeleti-bp' || airport == 'bp-rtkeleti' || airport == 'rtnyugati-bp' || airport == 'bp-rtnyugati' || airport == 'rtdeli-bp' || airport == 'bp-rtdeli' || airport == 'bp-dock' || airport == 'dock-bp' || airport == 'bp-bp') {
			var price = 6500; 
			if (persons<1) price = 0; 
      if (persons<3) price = 6500;            
      if (persons>3) price = 7000;
      if (persons>4) price = 9000; 
      if (persons>8) price = 18400; 
      if (persons>16) price = 27600;
      if (persons>24) price = 40000;
      if (persons>32) price = 0;  
		}
		else if (airport == 'ferihegy-bpsur' || airport == 'bpsur-ferihegy') {
			var price = 21000;
			if (persons<1) price = 0;
			if (persons<4) price = 21000;
			if (persons>4) price = 24000;
			if (persons>8) price = 48000;
			if (persons>16) price = 72000;
			if (persons>24) price = 96000;
			if (persons>32) price = 0;
		}
		else if (airport == 'ferihegy-sziget' || airport == 'sziget-ferihegy') {
			var price = 10000;
			if (persons<1) price = 0;
			if (persons<4) price = 10000;			 
			if (persons>4) price = 15000;
			if (persons>8) price = 30000;
			if (persons>16) price = 45000;
			if (persons>24) price = 60000;
			if (persons>32) price = 0;
		}	
		else if (airport == 'ferihegy-ozora' || airport == 'ozora-ferihegy') {
			var price = 44000;
			if (persons<1) price = 0;
			if (persons<4) price = 44000;			 
			if (persons>4) price = 47000;
			if (persons>8) price = 84000;
			if (persons>16) price = 121000;
			if (persons>24) price = 158000;
			if (persons>32) price = 0;
		}
		else if (airport == 'ferihegy-hungaroring' || airport == 'hungaroring-ferihegy') {
			var price = 25000;
			if (persons<1) price = 0;
			if (persons<4) price = 25000;
			if (persons>4) price = 35000;
			if (persons>8) price = 70000;
			if (persons>16) price = 105000;
			if (persons>24) price = 140000;
			if (persons>32) price = 0;
		}
		else if (airport == 'balatoneast-bp' || airport == 'bp-balatoneast') {
			var price = 45000;
			if (persons<1) price = 0;
			if (persons<4) price = 45000;
			if (persons>4) price = 47000;
			if (persons>8) price = 94000;
			if (persons>16) price = 141000;
			if (persons>24) price = 188000;
			if (persons>32) price = 0;
		}
		else if (airport == 'balatonwest-bp' || airport == 'bp-balatonwest') {
			var price = 55000;
			if (persons<1) price = 0;
			if (persons<4) price = 55000;
			if (persons>4) price = 57000;
			if (persons>8) price = 114000;
			if (persons>16) price = 171000;
			if (persons>24) price = 228000;
			if (persons>32) price = 0;
		}
		else if (airport == 'vienna-bp' || airport == 'bp-vienna') {
			var price = 64400;
			if (persons<1) price = 0;
			if (persons<4) price = 64400;
			if (persons>4) price = 67400;
			if (persons>8) price = 124800;
			if (persons>16) price = 182200;
			if (persons>24) price = 239600;
			if (persons>32) price = 0;
		}
		else if (airport == 'bratislava-bp' || airport == 'bp-bratislava') {
			var price = 55600;
			if (persons<1) price = 0;
			if (persons<4) price = 55600;
			if (persons>4) price = 58600;
			if (persons>8) price = 107200;
			if (persons>16) price = 155800;
			if (persons>24) price = 204400;
			if (persons>32) price = 0;
		}
		else if (airport == 'bp-othercity' || airport == 'othercity-bp') {
			var price = 0;
			if (persons<1) price = 0;
			if (persons<4) price = 0;
			if (persons>4) price = 0;
			if (persons>8) price = 0;
			if (persons>16) price = 0;
			if (persons>24) price = 0;
			if (persons>32) price = 0;
		}
	

		else if (airport == 'ferihegy-kecskemet' || airport == 'kecskemet-ferihegy') {
			var price = 29600;
			if (persons<1) price = 0;
			if (persons<4) price = 29600;
			if (persons>4) price = 32600;
			if (persons>8) price = 55200;
			if (persons>16) price = 77800;
			if (persons>24) price = 100400;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-pecs' || airport == 'pecs-ferihegy') {
			var price = 57200;
			if (persons<1) price = 0;
			if (persons<4) price = 57200;
			if (persons>4) price = 60200;
			if (persons>8) price = 110400;
			if (persons>16) price = 160600;
			if (persons>24) price = 210800;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-bcsaba' || airport == 'bcsaba-ferihegy') {
			var price = 54600;
			if (persons<1) price = 0;
			if (persons<4) price = 54600;
			if (persons>4) price = 57600;
			if (persons>8) price = 105200;
			if (persons>16) price = 152800;
			if (persons>24) price = 200400;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-miskolc' || airport == 'miskolc-ferihegy') {
			var price = 51400;
			if (persons<1) price = 0;
			if (persons<4) price = 51400;
			if (persons>4) price = 54400;
			if (persons>8) price = 98800;
			if (persons>16) price = 143200;
			if (persons>24) price = 187600;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-god' || airport == 'god-ferihegy') {
			var price = 21000;
			if (persons<1) price = 0;
			if (persons<4) price = 21000;
			if (persons>4) price = 24000;
			if (persons>8) price = 38000;
			if (persons>16) price = 52000;
			if (persons>24) price = 66000;
			if (persons>32) price = 0;
		}
	
		else if (airport == 'ferihegy-siofok' || airport == 'siofok-ferihegy') {
			var price = 36000;
			if (persons<1) price = 0;
			if (persons<4) price = 36000;
			if (persons>4) price = 39000;
			if (persons>8) price = 68000;
			if (persons>16) price = 97000;
			if (persons>24) price = 126000;
			if (persons>32) price = 0;
		}
		
		else if (airport == 'zamardi-ferihegy' || airport == 'ferihegy-zamardi') {
			var price = 41000;
			if (persons<1) price = 0;
			if (persons<4) price = 41000;
			if (persons>4) price = 44000;
			if (persons>8) price = 78000;
			if (persons>16) price = 112000;
			if (persons>24) price = 146000;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-balfenyves' || airport == 'balfenyves-ferihegy') {
			var price = 47600;
			if (persons<1) price = 0;
			if (persons<4) price = 47600;
			if (persons>4) price = 50600;
			if (persons>8) price = 91200;
			if (persons>16) price = 131800;
			if (persons>24) price = 172400;
			if (persons>32) price = 0;
		}
		
		else if (airport == 'ferihegy-balfured' || airport == 'balfured-ferihegy') {			
			var price = 41000;
			if (persons<1) price = 0;
			if (persons<4) price = 41000;
			if (persons>4) price = 44000;
			if (persons>8) price = 78000;
			if (persons>16) price = 112000;
			if (persons>24) price = 146000;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-szeged' || airport == 'szeged-ferihegy') {
			var price = 46000;
			if (persons<1) price = 0;
			if (persons<4) price = 46000;
			if (persons>4) price = 49000;
			if (persons>8) price = 88000;
			if (persons>16) price = 127000;
			if (persons>24) price = 166000;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-szfvar' || airport == 'szfvar-ferihegy') {
			var price = 28400;
			if (persons<1) price = 0;
			if (persons<4) price = 28400;
			if (persons>4) price = 31400;
			if (persons>8) price = 52800;
			if (persons>16) price = 74200;
			if (persons>24) price = 95600;
			if (persons>32) price = 0;			
		}

		else if (airport == 'ferihegy-gyor' || airport == 'gyor-ferihegy') {
      var price = 40000;
			if (persons<1) price = 0;
			if (persons<4) price = 40000;
			if (persons>4) price = 43000;
			if (persons>8) price = 76000;
			if (persons>16) price = 109000;
			if (persons>24) price = 142000;
			if (persons>32) price = 0;	
		}

		else if (airport == 'ferihegy-debrecen' || airport == 'debrecen-ferihegy') {
      var price = 61000;
			if (persons<1) price = 0;
			if (persons<4) price = 61000;
			if (persons>4) price = 64000;
			if (persons>8) price = 118000;
			if (persons>16) price = 172000;
			if (persons>24) price = 226000;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-eger' || airport == 'eger-ferihegy') {			
			var price = 42400;
			if (persons<1) price = 0;
			if (persons<4) price = 42400;
			if (persons>4) price = 45400;
			if (persons>8) price = 80800;
			if (persons>16) price = 116200;
			if (persons>24) price = 151600;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-szolnok' || airport == 'szolnok-ferihegy') {			
			var price = 29200;
			if (persons<1) price = 0;
			if (persons<4) price = 29200;
			if (persons>4) price = 32200;
			if (persons>8) price = 54400;
			if (persons>16) price = 76600;
			if (persons>24) price = 98800;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-tbanya' || airport == 'tbanya-ferihegy') {
			var price = 29000;
			if (persons<1) price = 0;
			if (persons<4) price = 29000;
			if (persons>4) price = 32000;
			if (persons>8) price = 54000;
			if (persons>16) price = 76000;
			if (persons>24) price = 98000;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-starjan' || airport == 'starjan-ferihegy') {
			var price = 36400;
			if (persons<1) price = 0;
			if (persons<4) price = 36400;
			if (persons>4) price = 39400;
			if (persons>8) price = 68800;
			if (persons>16) price = 98200;
			if (persons>24) price = 127600;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-kaposvar' || airport == 'kaposvar-ferihegy') {
			var price = 53600;
			if (persons<1) price = 0;
			if (persons<4) price = 53600;
			if (persons>4) price = 56600;
			if (persons>8) price = 103200;
			if (persons>16) price = 149800;
			if (persons>24) price = 196400;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-nyhaza' || airport == 'nyhaza-ferihegy') {
			var price = 62000;
			if (persons<1) price = 0;
			if (persons<4) price = 62000;
			if (persons>4) price = 65000;
			if (persons>8) price = 120000;
			if (persons>16) price = 175000;
			if (persons>24) price = 230000;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-szekszard' || airport == 'szekszard-ferihegy') {
			var price = 46600;
			if (persons<1) price = 0;
			if (persons<4) price = 46600;
			if (persons>4) price = 49600;
			if (persons>8) price = 89200;
			if (persons>16) price = 128800;
			if (persons>24) price = 168400;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-szhely' || airport == 'szhely-ferihegy') {
			var price = 61000;
			if (persons<1) price = 0;
			if (persons<4) price = 61000;
			if (persons>4) price = 64000;
			if (persons>8) price = 118000;
			if (persons>16) price = 172000;
			if (persons>24) price = 226000;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-tihany' || airport == 'tihany-ferihegy') {
			var price = 39600;
			if (persons<1) price = 0;
			if (persons<4) price = 39600;
			if (persons>4) price = 42600;
			if (persons>8) price = 75200;
			if (persons>16) price = 107800;
			if (persons>24) price = 140400;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-veszprem' || airport == 'veszprem-ferihegy') {
			var price = 39200;
			if (persons<1) price = 0;
			if (persons<4) price = 39200;
			if (persons>4) price = 42200;
			if (persons>8) price = 74400;
			if (persons>16) price = 106600;
			if (persons>24) price = 138800;
			if (persons>32) price = 0;
		}

		else if (airport == 'ferihegy-zegerszeg' || airport == 'zegerszeg-ferihegy') {
			var price = 61000;
			if (persons<1) price = 0;
			if (persons<4) price = 61000;
			if (persons>4) price = 64000;
			if (persons>8) price = 118000;
			if (persons>16) price = 172000;
			if (persons>24) price = 226000;
			if (persons>32) price = 0;
		}
		
		else if (airport == 'ferihegy-keszthely' || airport == 'keszthely-ferihegy') {
			var price = 53000;
			if (persons<1) price = 0;
			if (persons<4) price = 53000;
			if (persons>4) price = 56000;
			if (persons>8) price = 102000;
			if (persons>16) price = 148000;
			if (persons>24) price = 194000;
			if (persons>32) price = 0;
		}
		
		else if (airport == 'ferihegy-heviz' || airport == 'heviz-ferihegy') {
			var price = 54000;
			if (persons<1) price = 0;
			if (persons<4) price = 54000;
			if (persons>4) price = 57000;
			if (persons>8) price = 104000;
			if (persons>16) price = 151000;
			if (persons>24) price = 198000;
			if (persons>32) price = 0;
		}		
		
		else if (airport == 'ferihegy-gyula' || airport == 'gyula-ferihegy') {
			var price = 59000;
			if (persons<1) price = 0;
			if (persons<4) price = 59000;
			if (persons>4) price = 62000;
			if (persons>8) price = 114000;
			if (persons>16) price = 166000;
			if (persons>24) price = 218000;
			if (persons>32) price = 0;
		}		
		
		else if (airport == 'ferihegy-zkaros' || airport == 'zkaros-ferihegy') {
			var price = 55000;
			if (persons<1) price = 0;
			if (persons<4) price = 55000;
			if (persons>4) price = 58000;
			if (persons>8) price = 106000;
			if (persons>16) price = 154000;
			if (persons>24) price = 202000;
			if (persons>32) price = 0;
		}		
		
		else if (airport == 'ferihegy-mtapolca' || airport == 'mtapolca-ferihegy') {
			var price = 51600;
			if (persons<1) price = 0;
			if (persons<4) price = 51600;
			if (persons>4) price = 54600;
			if (persons>8) price = 99200;
			if (persons>16) price = 143800;
			if (persons>24) price = 188400;
			if (persons>32) price = 0;
		}
		
		else if (airport == 'ferihegy-bukfurdo' || airport == 'bukfurdo-ferihegy') {
			var price = 56000;
			if (persons<1) price = 0;
			if (persons<4) price = 56000;
			if (persons>4) price = 59000;
			if (persons>8) price = 108000;
			if (persons>16) price = 157000;
			if (persons>24) price = 206000;
			if (persons>32) price = 0;
		}		
		
		else if (airport == 'ferihegy-harkany' || airport == 'harkany-ferihegy') {
			var price = 63000;
			if (persons<1) price = 0;
			if (persons<4) price = 63000;
			if (persons>4) price = 66000;
			if (persons>8) price = 122000;
			if (persons>16) price = 178000;
			if (persons>24) price = 234000;
			if (persons>32) price = 0;
		}			
		
		else if (airport == 'ferihegy-hszoboszlo' || airport == 'hszoboszlo-ferihegy') {
			var price = 63200;
			if (persons<1) price = 0;
			if (persons<4) price = 63200;
			if (persons>4) price = 66200;
			if (persons>8) price = 122400;
			if (persons>16) price = 178600;
			if (persons>24) price = 234800;
			if (persons>32) price = 0;
		}	
		
		else if (airport == 'ferihegy-sarvar' || airport == 'sarvar-ferihegy') {
			var price = 58000;
			if (persons<1) price = 0;
			if (persons<4) price = 58000;
			if (persons>4) price = 61000;
			if (persons>8) price = 112000;
			if (persons>16) price = 163000;
			if (persons>24) price = 214000;
			if (persons>32) price = 0;
		}		
		
		else if (airport == 'ferihegy-cegled' || airport == 'cegled-ferihegy') {
			var price = 23600;
			if (persons<1) price = 0;
			if (persons<4) price = 23600;
			if (persons>4) price = 26600;
			if (persons>8) price = 43200;
			if (persons>16) price = 59800;
			if (persons>24) price = 76400;
			if (persons>32) price = 0;
		}	
		
		else if (airport == 'ferihegy-godollo' || airport == 'godollo-ferihegy') {
			var price = 20000;
			if (persons<1) price = 0;
			if (persons<4) price = 20000;
			if (persons>4) price = 23000;
			if (persons>8) price = 36000;
			if (persons>16) price = 49000;
			if (persons>24) price = 62000;
			if (persons>32) price = 0;
		}	
		
		else if (airport == 'ferihegy-arad' || airport == 'arad-ferihegy') {
			var price = 66600;
			if (persons<1) price = 0;
			if (persons<4) price = 66600;
			if (persons>4) price = 69600;
			if (persons>8) price = 129200;
			if (persons>16) price = 188800;
			if (persons>24) price = 248400;
			if (persons>32) price = 0;
		}		
		
		else if (airport == 'ferihegy-oradea' || airport == 'oradea-ferihegy') {
			var price = 77000;
			if (persons<1) price = 0;
			if (persons<4) price = 77000;
			if (persons>4) price = 80000;
			if (persons>8) price = 150000;
			if (persons>16) price = 220000;
			if (persons>24) price = 290000;
			if (persons>32) price = 0;
		}		
		
		else if (airport == 'ferihegy-timisoara' || airport == 'timisoara-ferihegy') {
			var price = 69000;
			if (persons<1) price = 0;
			if (persons<4) price = 69000;
			if (persons>4) price = 72000;
			if (persons>8) price = 134000;
			if (persons>16) price = 196000;
			if (persons>24) price = 258000;
			if (persons>32) price = 0;
		}	
		
		else if (airport == 'ferihegy-novisad' || airport == 'novisad-ferihegy') {
			var price = 70400;
			if (persons<1) price = 0;
			if (persons<4) price = 70400;
			if (persons>4) price = 73400;
			if (persons>8) price = 136800;
			if (persons>16) price = 200200;
			if (persons>24) price = 263600;
			if (persons>32) price = 0;
		}	
		
		else if (airport == 'ferihegy-clujnapoca' || airport == 'clujnapoca-ferihegy') {
			var price = 106000;
			if (persons<1) price = 0;
			if (persons<4) price = 106000;
			if (persons>4) price = 109000;
			if (persons>8) price = 208000;
			if (persons>16) price = 307000;
			if (persons>24) price = 406000;
			if (persons>32) price = 0;
		}
		
		else if (airport == 'ferihegy-satumare' || airport == 'satumare-ferihegy') {
			var price = 82400;
			if (persons<1) price = 0;
			if (persons<4) price = 82400;
			if (persons>4) price = 85400;
			if (persons>8) price = 160800;
			if (persons>16) price = 236200;
			if (persons>24) price = 311600;
			if (persons>32) price = 0;
		}		
		
		else if (airport == 'ferihegy-kosice' || airport == 'kosice-ferihegy') {
			var price = 66800;
			if (persons<1) price = 0;
			if (persons<4) price = 66800;
			if (persons>4) price = 69800;
			if (persons>8) price = 129600;
			if (persons>16) price = 189400;
			if (persons>24) price = 249200;
			if (persons>32) price = 0;
		}		
		
		else if (airport == 'ferihegy-banskabystrica' || airport == 'banskabystrica-ferihegy') {
			var price = 53200;
			if (persons<1) price = 0;
			if (persons<4) price = 53200;
			if (persons>4) price = 56200;
			if (persons>8) price = 102400;
			if (persons>16) price = 148600;
			if (persons>24) price = 194800;
			if (persons>32) price = 0;
		}	
		
		else if (airport == 'ferihegy-zagreb' || airport == 'zagreb-ferihegy') {
			var price = 84800;
			if (persons<1) price = 0;
			if (persons<4) price = 84800;
			if (persons>4) price = 87800;
			if (persons>8) price = 165600;
			if (persons>16) price = 243400;
			if (persons>24) price = 321200;
			if (persons>32) price = 0;
		}																		

	if (document.getElementById('returntransfer').checked) {
		price = price*1.8;
	}
	globalprice= price;

if (currency == 'payeur') {
	var sprice = Math.round(price/eurhuf)+' EUR';	
	}	 
if (currency == 'paygbp') {
	var sprice = Math.round(price/gbphuf)+' GBP';	
	}	
if (currency == 'payusd') {
	var sprice = Math.round(price/usdhuf)+' USD';	
	}	
if (currency == 'payhuf') {
	var sprice = Math.round(price)+' HUF';	
	}	
	
	var pprice = price/persons;
	
if (currency == 'payeur') {
	var psprice = Math.round(pprice/eurhuf)+' EUR';
	}
if (currency == 'paygbp') {
	var psprice = Math.round(pprice/eurhuf)+' GBP';
	}
if (currency == 'payusd') {
	var psprice = Math.round(pprice/eurhuf)+' USD';
	}
if (currency == 'payhuf') {
	var psprice = Math.round(pprice/eurhuf)+' HUF';
	}
	
	if (document.getElementById('price')) {
		document.getElementById('price').innerHTML = sprice;
	}
	if (document.getElementById('pprice')) {
		document.getElementById('pprice').innerHTML = psprice;
	}
	if (document.getElementById('price2')) {
		document.getElementById('price2').innerHTML = sprice;
	}

	if (document.getElementById('iprice')) {
		document.getElementById('iprice').value = sprice;
	}
	if (document.getElementById('ipprice')) {
		document.getElementById('ipprice').value = psprice;
	}
	if (document.getElementById('iprice2')) {
		document.getElementById('iprice2').value = sprice;
	}
}


function mainprice() {
	 
	var eurow = Math.round(huf/eurhuf)+' EUR';
	var eurrt = Math.round(huf/eurhuf*1.8)+' EUR';
	var eurow1 = Math.round(huf/eurhuf)+' &#8364;';
	var eurrt1 = Math.round(huf/eurhuf*1.8)+' &#8364;';
	
	if (document.getElementById('eurow')) {
		document.getElementById('eurow').innerHTML = eurow;
	}
	if (document.getElementById('eurrt')) {
		document.getElementById('eurrt').innerHTML = eurrt;
	}
		if (document.getElementById('eurow1')) {
		document.getElementById('eurow1').innerHTML = eurow1;
	}
	if (document.getElementById('eurrt1')) {
		document.getElementById('eurrt1').innerHTML = eurrt1;
	}
}

function addCommas(nStr)
{
	var rgx = / /;
	while (rgx.test(nStr)) {
		nStr = nStr.replace(rgx,"");
	}

	nStr += '';
	x = nStr.split('.');
	x1 = x[0];
	x2 = x.length > 1 ? '.' + x[1] : '';
	var rgx = /(\d+)(\d{3})/;
	while (rgx.test(x1)) {
		x1 = x1.replace(rgx, '$1' + ' ' + '$2');
	}
	return x1 + x2;
}

function enableDisable(oChk){
var disable = !oChk.checked;
var arglen = arguments.length;
var obj, startIndex = 1;
var frm = oChk.form;
for (var i=startIndex;i<arglen;i++){
obj = frm.elements[arguments[i]];
if (typeof obj=="object"){
if (document.layers) {
if (disable){
obj.onfocus=new Function("this.blur()");
if (obj.type=="text") obj.onchange=new Function("this.value=this.defaultValue");
}
else {
obj.onfocus=new Function("return");
if (obj.type=="text") obj.onchange=new Function("return");
}
}
else obj.disabled=disable;
}
}
}

function TRANSFERID() {
document.forms[0].TRANSFERID.value=('ATB' + Math.round(Math.random()*999999999+1));
}

//-->
