
function gotoPage(thePage){
    //alert("getting content for " + thePage);
    getContent(thePage,currLang,"txt","content", "post", processContent, '');
}

function getPage(func, data){
    //alert ("FUNC = " + func);
    getContent(func, currLang, "txt", "text", "post", processContent, '&func=' + func + data);
    
}
function getProducts(cat, brand){
    data="&cat=" + cat + "&brand=" + brand;
    func="get_products";
    getContent(func, currLang, "txt", "text", "post", processContent, '&func=' + func + data);
}

function getDetail(prod){
    data="&prod=" +prod;
    func="get_product_detail";
    getContent(func, currLang, "txt", "text", "post", processContent, '&func=' + func + data);
}

function processContent(Content, tField){
    //alert(Content);
    document.getElementById(tField).innerHTML = Content;
    if(currPage == "home"){
        loaded=1;
        currPage = "";
    }
    
}
