//
// prefix by uhmf
//
// functions
//
// initialiseHeader()
// updateMenu()
// updateHeader()
// updateFooter()

function uhmf_initialiseHeader()
{
    //frames['frameStorageHeader'].location.href = "generated_html/"+gstrLang+"/header_"+gstrLang+".html";
    frames['frameStorageHeader'].location.replace("generated_html/"+gstrLang+"/header_"+gstrLang+".html");
}

function uhmf_updateMenu()
{
    //frames['frameStorageMenu'].location.href = "generated_html/"+gstrLang+"/menu_"+gstrLang+".html";	
    frames['frameStorageMenu'].location.replace("generated_html/"+gstrLang+"/menu_"+gstrLang+".html");	
}

function uhmf_updateHeader()
{
    var otblHomeContact = document.getElementById("tblHomeContact");
    var objCell, objSpnTextInNewLang, objText;
    

    for (var i = 0; i< otblHomeContact.rows.length; ++i)
    {
        objCell = otblHomeContact.rows[i].cells[0];
        objSpnTextInNewLang = document.getElementById("spn_" + otblHomeContact.rows[i].cells[0].id + "_" + gstrLang);
        objText = document.createTextNode(objSpnTextInNewLang.getAttribute("textInNewLang"));
        
        objCell.replaceChild(objText, objCell.childNodes[0]);
        objCell.title = objSpnTextInNewLang.getAttribute("textInNewLang");
    }
    
}

function uhmf_updateFooter()
{
    //frames['frameStorageFooter'].location.href = "generated_html/"+gstrLang+"/footer_"+gstrLang+".html";
    frames['frameStorageFooter'].location.replace("generated_html/"+gstrLang+"/footer_"+gstrLang+".html");
}

