
 function RecordsInnerNav(urlpath, lid, pid, pn) {

    RDT = document.getElementById("ReporstDataTable");
    
    RDT.innerHTML = "<img src='sc_graphics/loader.gif' />";
    
    fields_data = "data=" + urlpath + "&lid=" + lid + "&pid=" + pid + "&pn=" + pn;
    
	var doPagesContent = function(doPagesContentResponse) {
                        
        RDT.innerHTML = doPagesContentResponse;        
            	      
	} // end 
	
	oAjax.doPost('vp_content.php', fields_data, doPagesContent, 'text');

 } // end function
 

 function ContentAreaBoxPage(urlpath) {

    CABI = document.getElementById("ContentAreaBoxInner");
    
    CABI.innerHTML = "<img src='sc_graphics/loader2.gif' />";
    
    lid = document.getElementById("current_lang").innerHTML;
    
    fields_data = "data=" + urlpath + "&lang=" + lid;

	var doPagesContent = function(doPagesContentResponse) {
                        
        CABI.innerHTML = doPagesContentResponse; 
        
        document.getElementById(urlpath + "_selected_page_address").value = document.getElementById("current_page_address").innerHTML;
        
        ptitle = document.getElementById("current_page_title").innerHTML;
        
        ptObj = document.getElementById("current_page_title_2nd");
        
        if(ptObj)
           ptitle += " - " + ptObj.innerHTML;
           
        CABI_SubPage = document.getElementById(urlpath + "_page_title");
        
        if(CABI_SubPage)
           CABI_SubPage.innerHTML = ptitle;
           
        document.getElementById(urlpath + "_selected_page_title").value = ptitle;

	} // end 
	
	oAjax.doPost('vp_content.php', fields_data, doPagesContent, 'text');

 } // end function


 function FormDataInnerSubmit(formname, fieldsvals) {

    re_form_area = document.getElementById(formname + "_form_area");
    
    document.getElementById(formname + "_submit_button").style.display = "none";
    
    re_form_area.innerHTML = "<img src='sc_graphics/loader.gif' />";
        
	var doPagesContent = function(doPagesContentResponse) {
                        
        re_form_area.innerHTML = doPagesContentResponse;        
            	      
	} // end 
	
    oAjax.doPost('vp_manage_inner.php', fieldsvals, doPagesContent, 'text');
 
 } // end function


 function ContentAreaBoxData(urlpath, afields) {

    CABI = document.getElementById("ContentAreaBoxInner");
    
    CABI.innerHTML = "<img src='sc_graphics/loader2.gif' />";
    
    lid = document.getElementById("current_lang").innerHTML;
    
    fields_data = "data=" + urlpath + "&lang=" + lid + "&" + afields;

	var doPagesContent = function(doPagesContentResponse) {
                        
        CABI.innerHTML = doPagesContentResponse; 
            	      
	} // end 
	
	oAjax.doPost('vp_content.php', fields_data, doPagesContent, 'text');

 } // end function


 function HotelsPopupPictures(urlpath, hid) {
 
    HpObj = document.getElementById("hotel_pictures");
    
    HpObj.innerHTML = "<img src='sc_graphics/loader2.gif' />";
    
    fields_data = "data=" + urlpath + "&hid=" + hid;

	var doPagesContent = function(doPagesContentResponse) {
                        
        HpObj.innerHTML = doPagesContentResponse; 
            	      
	} // end 
	
	oAjax.doPost('vp_content.php', fields_data, doPagesContent, 'text');

 } // end function


 function CityTopBannerInfo(urlpath, cid, city_banners_len, cbn) {

    lid = document.getElementById("current_lang").innerHTML;

    fields_data = "data=" + urlpath + "&cid=" + cid + "&cbn=" + cbn + "&lang=" + lid;

	var doPagesContent = function(doPagesContentResponse) {

        city_banner_file_info = doPagesContentResponse; 

        city_banner_file_info_arr = city_banner_file_info.split("#");
        
        city_banner_file_info_path = city_banner_file_info_arr[1];
        city_banner_file_info_caption = city_banner_file_info_arr[2];
        
        if(city_banner_file_info_path != "") {
           document.getElementById("TopBannerImg").src = city_banner_file_info_path;
           document.getElementById("TopBannerImg").title = city_banner_file_info_caption;
        }
        
        cbn++;
        
        CityTopBannersPreview(urlpath, cid, city_banners_len, cbn);

	} // end 

	oAjax.doPost('vp_content.php', fields_data, doPagesContent, 'text');

 } // end function


 function GetRandCityTopBanners(urlpath, cid) {

    setTimeout("GetRandCityTopBannersReq('"+urlpath+"', '"+cid+"')", 10000);

 } // end function

 function GetRandCityTopBannersReq(urlpath, cid) {

    lid = document.getElementById("current_lang").innerHTML;

    fields_data = "data=" + urlpath + "&cid=" + cid + "&lang=" + lid;

	var doPagesContent = function(doPagesContentResponse) {

        city_banner_file_info = doPagesContentResponse; 

        city_banner_file_info_arr = city_banner_file_info.split("#");
        
        city_banner_file_info_path = city_banner_file_info_arr[1];
        city_banner_file_info_caption = city_banner_file_info_arr[2];
        
        if(city_banner_file_info_path != "") {
           document.getElementById("TopBannerImg").src = city_banner_file_info_path;
           document.getElementById("TopBannerImg").title = city_banner_file_info_caption;
        }

	} // end 

	oAjax.doPost('vp_content.php', fields_data, doPagesContent, 'text');

 } // end function


 function DateTimeZone(zone) {
 
    document.getElementById("SelectedZoneContentArea").style.display = "block";
    
    document.getElementById("SelectedZoneTitle").innerHTML = "<img src='sc_graphics/loader.gif' />";
  
    lid = document.getElementById("current_lang").innerHTML;

    fields_data = "data=time&zone=" + zone + "&lang=" + lid;

	var doPagesContent = function(doPagesContentResponse) {

        InnerContentBoxDisplay('PageTopOptionsTimeBox','','visibility');
        
        data_time_zone = doPagesContentResponse.split("###"); 

        document.getElementById("SelectedZoneTitle").innerHTML = data_time_zone[1];
        document.getElementById("SelectedZoneDateTime").innerHTML = data_time_zone[2];

	} // end 

	oAjax.doPost('vp_content.php', fields_data, doPagesContent, 'text');
 
 } // end function
 

 function ContentAreaBoxPage2(urlpath, parm2) {

    CABI = document.getElementById("ContentAreaBoxInner");
    
    CABI.innerHTML = "<img src='sc_graphics/loader2.gif' />";
    
    lid = document.getElementById("current_lang").innerHTML;
    
    fields_data = "data=" + urlpath + "&lang=" + lid;

	var doPagesContent = function(doPagesContentResponse) {
                        
        CABI.innerHTML = doPagesContentResponse;
        
        if(urlpath == "post_cards")
           document.getElementById(urlpath + "_pcfile").value = parm2;

	} // end 
	
	oAjax.doPost('vp_content.php', fields_data, doPagesContent, 'text');

 } // end function
