function LoadWindowHTML(window_id, html_page, window_title, width_relative, height_relative, wpixel, hpixel,sound_off){

if(sound_off == "true"){
 	 setControllVolume('sound','stop');
}


//screen.availHeight - the height of the screen in pixels minus any GUI stuff such as the windows taskbar
//screen.availWidth - the width of the screen in pixels minus any GUI stuff such as the windows taskbar
//screen.height - the height of the screen in pixels
//screen.width - the width of the screen in pixels 


if(!document.all){ // Firefox
 	//------------------------------------------------------------------------------------------------------- 
	if( ( wpixel == 0) && ( hpixel == 0) ){

		div_width  = ( window.innerWidth  / 100 ) * width_relative  - 20   ; // min 150 px -> max 100% width
		div_height = ( window.innerHeight / 100 ) * height_relative - 20   ; // min 100 px -> max 100% height
		//div_left  = ( window.innerWidth  / 2 ) - ( div_width  / 2 ) ;
		//div_top   = ( window.innerHeight / 2 ) - ( div_height / 2 ) ;
 	}
 	else{
		div_width  = wpixel;
		div_height = hpixel;
 	}
 	//------------------------------------------------------------------------------------------------------- 
	
}
else{ // IE
	//------------------------------------------------------------------------------------------------------- 
 	if( ( wpixel == 0 ) && ( hpixel == 0 ) ) {
		div_width  = ( document.documentElement.clientWidth  / 100 ) * width_relative  -  4  ;
		div_height = ( document.documentElement.clientHeight / 100 ) * height_relative - 20  ;
		//div_left  =  ( document.documentElement.clientWidth  / 2 ) - ( div_width  / 2 ) ; 
		//div_top   =  ( document.documentElement.clientHeight / 2 ) - ( div_height / 2 ) ;
 	}
 	else{
		div_width  = wpixel;
		div_height = hpixel;
 	}
//------------------------------------------------------------------------------------------------------- 
}

//dhtmlwindow.open(window_name, "iframe", html_page, window_title, "width=" + div_width + "px,height=" + div_height +"px,resize=1,scrolling=1,center=1", "recal");

if(getCookie("akadalymentesitett") == "false"){
	//window_id.creator=self
	var window_id = dhtmlwindow.open(Math.random(), "iframe", html_page, window_title, "width=" + div_width + "px, height=" + div_height +"px, resize=0, scrolling=1, center=1");
	window_id.focus();

}
else{
	var w = screen.width; 
	var h = screen.height;
	//window.open(html_page, windowid, 'width=' + w + ',height=' + h + ',toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes'); 
	var mywindow = window.open(html_page, window_id, 'width=' + w + ',height=' + h + ',toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes'); 
	
	//mywindow.document.tite =  window_title;
	document.body.style.backgroundColor='#000000';  

}
//----------------- ONCLOSE EVENT -------------------------
window_id.onclose=function(){ 


    if(sound_off == "true"){
	setControllVolume('sound','start');
    }
 	   
  return "true"; 	
//return window.confirm("????")
 }
//---------------------------------------------------------


}
