function work_go_to(one,two)
{
	
	
	//var num_record   = document.getElementById('num_of_records').value;
	//var num_record =5;
	var page_num     = parseInt(document.getElementById('current_page').value);
	var total_page   = parseInt(document.getElementById('total_page').value);
	var total_record   = parseInt(document.getElementById('total_record').value);
	var num_record   = parseInt(document.getElementById('num_record').value);
	
	if(one==0 && two==0)
	{
		page_num   = 1;
		window.location="index.php?p=2&pno="+page_num;
	}
	else if(one== -1 && two==0)
	{
		if(page_num > 1)		
			page_num--;
		window.location="index.php?p=2&pno="+page_num;
	}
	else if(one==1 && two==1)
	{
		
		if(page_num > total_page)
		{
			page_num = total_page;
		}
		else if(page_num < 1)
		{
			page_num = 1;
		}
		else
		{
			page_num = total_page;
		}
				
		window.location="index.php?p=2&pno="+page_num;
	}
	else if(one==1 && two==0)
	{
		
		if(total_page > page_num)
			page_num++;
		window.location="index.php?p=2&pno="+page_num;
	}
	else if(one==0 && two==1)
	{ //alert("dfg");
		//num_record = 10;		
		    page_num = total_page;
		window.location="index.php?p=2&pno="+page_num;
	}	
	else
	{
		
	}
}

function current_page(value)
{
	
	window.location="index.php?p=2&pno="+value;
	
}

function inner()
{
	window.location="index.php?p=1";
}

