function ChangeLanguage(LanguageInd)
{
var page=parent.main.location.href;
page = page.substr(page.length-11,11);
page= LanguageInd + page;
//alert(page);
//alert(LanguageInd + 'code.html');

self.location.href = LanguageInd + 'code.html';
parent.main.location.href = page;
}

function test(){
alert('test');
self.location.href='000070]].html';
}




function PBP(mypage,myname)
{
var myWind = "";

	 var winl = 50;
	 var wint = 50;
	 var h = 768;
	 var w = 1024;
         settings  ='height='+h+',';
		 settings +='width='+w+',';
    	 settings +='top='+wint+',';
    	 settings +='left='+winl+',';
    	 settings +='screenY='+wint+',';
    	 settings +='screenX='+winl+',';
    	 settings +='toolbar=no,';
    	 settings +='directories=no,';
    	 settings +='location=no,';
    	 settings +='status=no,';
    	 settings +='menubar=no,';
    	 settings +='resizable=no,';
    	 settings +='scrollbars=yes,';


  if (myWind == "" || myWind.closed || myWind.name == undefined) {
    myWind = window.open(mypage,myname,settings)
  }
}


function NewWindow(mypage,myname,w,h,scroll,res)

{
	alert('New window');
  	var winl = (screen.width-w)/2;
  	var wint = (screen.height-h)/2;
  	var settings  ='height='+h+',';
        settings +='width='+w+',';
      	settings +='top='+wint+',';
      	settings +='left='+winl+',';
		settings +='screenY='+wint+',';
    	settings +='screenX='+winl+',';
      	settings +='scrollbars='+scroll+',';
      	settings +='resizable='+res;
  	var win = null;	
	
  	win=window.open(mypage,myname,settings);
	win.focus();
  	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function comefrom()
{

var Lan = navigator.language? navigator.language : navigator.userLanguage
var UAgent = navigator.userAgent;

Lan = Lan.substring(0,2);

//alert(parent.location.href);
//Lan='x';
//alert(Lan);
//alert(navigator.appName);
//alert(UAgent);

if (navigator.appName == 'Microsoft Internet Explorer'){ 
Lan = 'hu'; 
//alert(Lan);
}

if (Lan == 'nl'){
top.frames['code'].location.href = 'nl_code.html';
top.frames['main'].location.href = '000004.html';
   }
 else if (Lan == 'en'){
top.frames['code'].location.href = 'en_code.html';
top.frames['main'].location.href = 'en_03_000004.html';
   }
 else if (Lan == 'de'){
top.frames['code'].location.href = 'de_code.html';
top.frames['main'].location.href = 'de_000004.html';
   }
 else if (Lan == 'fr'){
top.frames['code'].location.href = 'en_code.html';
top.frames['main'].location.href = 'en_03_000004.html';
   }
 else if (Lan == 'nl'){
top.frames['code'].location.href = 'hu_code.html';
top.frames['main'].location.href = 'hu_000004.html';
   }
 else if (Lan == 'it'){
top.frames['code'].location.href = 'en_code.html';
top.frames['main'].location.href = 'en_03_000004.html';
   }
else   {
top.frames['code'].location.href = 'hu_code.html';
top.frames['main'].location.href = 'hu_000004.html';
   } 
   

//}
//else
//{
//top.frames['code'].location.href = 'hu_code.html';
//top.frames['main'].location.href = 'hu_000004.html';
  // }
}



function NewWindowExternalLink(mypage,myname)
{

	 var winl = 50;
	 var wint = 50;
	 var h = 325;
	 var w = 550;

         settings  ='height='+h+',';
	 settings +='width='+w+',';
    	 settings +='top='+wint+',';
    	 settings +='left='+winl+',';
    	 settings +='screenY='+wint+',';
    	 settings +='screenX='+winl+',';
    	 settings +='toolbar=no,';
    	 settings +='directories=no,';
    	 settings +='location=no,';
    	 settings +='status=no,';
    	 settings +='menubar=no,';
    	 settings +='resizable=no,';
    	 settings +='scrollbars=no,';
	 var  win= null;

	win=window.open(mypage,myname,settings);
	win.focus();
	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
	
}


