
//-----------------------------------------------------------//

function WriteIntoStatusLine(string)
{
    window.status = string;
    return true;
}

//-----------------------------------------------------------//
function SwapImageByPreloadedImageID(p_imageID,p_preLoadedImgID)
{
	if(p_imageID == '' || p_preLoadedImgID == '') return false;

	if(document.images)
	{
		l_preLoadedImg = eval(p_preLoadedImgID + ".src");
		document[p_imageID].src = l_preLoadedImg;
	}
}
//-----------------------------------------------------------//

function del_status()
{
    window.status = ' ';
}

//-----------------------------------------------------------//

function show_info_window(p_page, p_width, p_height, p_content, p_back)
{
    pozx = (screen.width) ? (screen.width-p_width)/2 : 0;
    pozy = (screen.height) ? (screen.width-p_height)/2 : 0;

    userwindow = window.open(p_page,"displayWindow",
    "toolbar=no,width="+p_width+
    ",height="+p_height+
    ",top="+pozy+
    ",left="+pozx);

    if(!userwindow.focus())
    {
        userwindow.focus();
    }
    InfoHtmlCode(p_content,p_back);
}

//-----------------------------------------------------------//

function close_info_window()
{
    window.close();
}

//-----------------------------------------------------------//

function show_img_normal(p_img_normal_name)
{
    img_normal = ("templates/images/menu/img_"+p_img_normal_name+"_normal.jpg");
    document["img_"+p_img_normal_name].src = img_normal;
}

//-----------------------------------------------------------//

function show_img_push(p_img_push_name)
{
    img_push = ("templates/images/menu/img_"+p_img_push_name+"_push.jpg");
    document["img_"+p_img_push_name].src = img_push;
}

//-----------------------------------------------------------//

function InfoHtmlCode(info_html_content,info_html_back)
{
    userwindow.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><html><head>");
    userwindow.document.write("<title>.:: Azu - Információ ::.</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-2\">");
    userwindow.document.write("<link href=\"./css/style.css\" rel=\"stylesheet\" type=\"text/css\">");
    userwindow.document.write("<script language=\"JavaScript\" src=\"./js/windows.js\"></script></head>");
    userwindow.document.write("<body background=\"./templates/images/img_back_06.jpg\"");
    userwindow.document.write("leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">");
    userwindow.document.write("<table width=\"300\" border=\"0\"><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
    userwindow.document.write("<tr><td><b>.:: Információ ::.</b><br><br></td></tr>");
    userwindow.document.write("<tr><td><b>"+info_html_content+"</b>");
    userwindow.document.write("</td></tr><tr><td><div align=\"right\">");
    userwindow.document.write("<a href=\"templates/info_tmp.html\" class=\"FontNavigation\" onClick=\"close_info_window()\">Bezár</a>");
    userwindow.document.write("</div></td></tr></table></td></tr></table></body></html>");
}

function MM_displayStatusMsg(msgStr) {
  status=msgStr;
  document.MM_returnValue = true;
}
