function PaginationGotoPage(npage){
	var t_val = document.getElementById('pagination_page').value;
    t_val = npage+t_val;
	var t_url = t_val;
	t_url = '?p0=' + t_url;
	window.open(t_url,'_self');	
}

function GetMenu(form_id) {
	try{
	  var printradiobutton = document.getElementsByName("printradiobutton");
	  for(var j=0;j<printradiobutton.length;j++){
		if(printradiobutton[j].checked == 1){
			if(printradiobutton[j].value=='Yes'){
				GoToPrintAll(form_id);
				return;
			}
			else {GoToPrintPaginated(form_id); return;}
		}
	  }
	} catch(error){}
}

function GoToPrintAll(form_id){
	var tmp=document.getElementById(form_id);
	try{
		tmp.pagination.value = 'no';
		tmp.submit();
	}catch(err){alert('error');}
}

function GoToPrintPaginated(form_id){
	var tmp=document.getElementById(form_id);
	try{
		tmp.submit();
	}catch(err){alert('error');}
}


function RadioSelected(r_value){
	if(r_value == 'yes'){
		document.getElementById('div_no').style.display='none';
		document.getElementById('div_yes').style.display='';
	}
	else if(r_value == 'no'){
		document.getElementById('div_yes').style.display='none';
		document.getElementById('div_no').style.display='';		
	}

}