var getURL_page = '/includes/getURL_blog.php';
function next_5 (startLimit, groupID)
{
	document.getElementById('loading_archive_div').style.display = 'block';
	posturl_obj=new postURL(getURL_page, next_5_handler);
	posturl_obj.addpost("NEXT_PAGE", "NEXT_PAGE");
	posturl_obj.addpost("startLimit", startLimit);
	posturl_obj.addpost("groupID", groupID);
    posturl_obj.go();
}

function next_5_handler(data)
{
	document.getElementById('main_archive_div').innerHTML = data;
	document.getElementById('loading_archive_div').style.display = 'none';
}

function prev_5 (startLimit, groupID)
{
	document.getElementById('loading_archive_div').style.display = 'block';
	posturl_obj=new postURL(getURL_page, next_5_handler);
	posturl_obj.addpost("NEXT_PAGE", "NEXT_PAGE");
	posturl_obj.addpost("startLimit", startLimit);
	posturl_obj.addpost("groupID", groupID);
    posturl_obj.go();
}

function prev_5_handler(data)
{
	document.getElementById('main_archive_div').innerHTML = data;
	document.getElementById('loading_archive_div').style.display = 'none';
}

function paging (pageNo, groupID)
{   
    var loaddivHeight=465;
    if(document.getElementById("main_archive_div").offsetHeight>=465)
	 {
	  loaddivHeight=document.getElementById("main_archive_div").offsetHeight;
	  }
    document.getElementById('loading_archive_div').style.height = loaddivHeight;
	document.getElementById('loading_archive_div').style.display = 'block';
	posturl_obj=new postURL(getURL_page, page_handler);
	//posturl_obj.addpost("NEXT_PAGE", "NEXT_PAGE");
	//alert(document.getElementById("loading_archive_div").offsetHeight);
	posturl_obj.addpost("pageNo", pageNo);
	posturl_obj.addpost("groupID", groupID);
    posturl_obj.go();
}


function page_handler(data)
{
	document.getElementById('main_archive_div').innerHTML = data;
	document.getElementById('loading_archive_div').style.display = 'none';
}


