function password_megjelenik(textf,passwf) {
	var obj=document.getElementById(textf);
	var obj2=document.getElementById(passwf);
	obj.style.display="none";
	obj2.style.display="block";
	obj2.focus();
}


function getPageSize(){
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}

function disableKeyboardNav()
    {	
		// stretch overlay to fill page and fade in
		var arrayPageSize = getPageSize();
		document.getElementById('disablescreen').style.left=0;
		document.getElementById('disablescreen').style.top=0;
		document.getElementById('disablescreen').style.width=arrayPageSize[0];
		document.getElementById('tddisablescreen').width=arrayPageSize[0];
		document.getElementById('disablescreen').style.height=arrayPageSize[1];
		document.getElementById('tddisablescreen').height=arrayPageSize[1];
		//alert(navigator.userAgent);
		//alert(screen.availHeight);
        if(navigator.userAgent.indexOf('MSIE')>=0)
		    document.getElementById('disablescreen').filters.alpha.opacity=50;
		else
		    if(navigator.userAgent.indexOf('Opera')>=0)
		        document.getElementById('disablescreen').style.opacity=0.5;
		    else
		document.getElementById('disablescreen').style.MozOpacity=0.5;
		document.getElementById('disablescreen').style.display='';
		document.getElementById('alkuszvalaszto').style.display='';
    }

function biztositas_flashek_beolvasasa(dis) {
	
    if(dis==0)
	    {
                param_korsorszam=Array(1,2,7,3,4,5,8,9);
                param_flash=Array('biztflash.swf','biztflash.swf','biztflash.swf','biztflash.swf','biztflash.swf','biztflash.swf','biztflash.swf','biztflash.swf');


		param_url=Array('Betoltes.aspx?modozat=1','Betoltes.aspx?modozat=0','Betoltes.aspx?modozat=2','Betoltes.aspx?modozat=3','Betoltes.aspx?modozat=5','Betoltes.aspx?modozat=4','Betoltes.aspx?modozat=8','Betoltes.aspx?modozat=9');
	
		var index=1;
		while (obj=document.getElementById("biztflash"+index))
		{
			
			var div_elem="biztflash"+index;
			var flash_elem="App_Themes/hu/direktbiztositas/www/App_Images/kozos_kepek_kulso/"+param_flash[index-1]+"?param_korsorszam="+param_korsorszam[index-1]+"&param_url="+param_url[index-1];

			var flash_o = new FlashObject(flash_elem, div_elem, "147", "125", "8", "#FFFFFF");
			flash_o.addParam("quality", "high");
			flash_o.addParam("bgcolor", "#FFFFFF");
			flash_o.addParam("menu", "false");
			flash_o.write(div_elem);
			index++;
		}
	    }
	else
	    {
	        disableKeyboardNav();
	    }

}
