
<!--
	

	function fncMovePageBlock(cur, tar)
	{
		var intDiff = Math.abs(tar - cur);
		var intRest = tar % 10
		var intFloor = Math.floor(tar * 0.1)
		var Val;

		
			if(intRest == 0)
			{
				Val = intFloor * 10 - 9
			}
			else
			{
				Val = intFloor * 10 + 1
			}
		

		return Val
	}
	//================================================================
	
	var strFullUrl = document.URL;
	var expQ = /\?/;	
	
	function fnc_Return_Query_Url()
	{
		
		
		var strPageName = "";
		
		if (strFullUrl.search(expQ) > -1)						
		{
			var arrQSplitUrl = strFullUrl.split("?")			
			strPageName = arrQSplitUrl[0];							
		}
		else
		{	
			strPageName = strFullUrl;
		}
		// ***********************************************************************************************************************************************	
		
		return strPageName;
	}

	function fnc_Return_Query_String()
	{
		// *********************************************************************************************************************************
		
		var strQuery = ""		
		var expA = /\&/;
		
		var expCurrentPage = /tiDirection/;	
		var expTargetPage = /CurrentPage/;	
		var expItemSeq = /ItemSeq/;	

		
		if (strFullUrl.search(expQ) > -1)						
		{
			var arrQSplitUrl = strFullUrl.split("?")			
			
			if (arrQSplitUrl[1].search(expA) > -1)				
			{
				var arrASplitUrl = arrQSplitUrl[1].split("&");	
				var lenArrASplitUrl = arrASplitUrl.length;		
		
				var k = 0
				for (var i=0;i<lenArrASplitUrl;i++)
					if (arrASplitUrl[i].search(expCurrentPage) < 0 && arrASplitUrl[i].search(expTargetPage) < 0 && arrASplitUrl[i].search(expItemSeq) < 0)
					{
						if (k == 0) 
							strQuery += arrASplitUrl[i];
						else
							strQuery += "&" + arrASplitUrl[i];
						k++;
					}		
			}
			else
			{
				if (arrQSplitUrl[1].search(expCurrentPage) < 0 && arrQSplitUrl[1].search(expTargetPage) < 0 && arrQSplitUrl[1].search(expItemSeq) < 0) strQuery = arrQSplitUrl[1];
			}
		}
		else
		{	
			strQuery = "";
		}
		// ***********************************************************************************************************************************************	
		
		return strQuery
	}
	

	
	function fnc_Navigation_Display(objID, intMinSeq, intMaxSeq, tiDirection, intPageSize, g_intLoop)
	{
		// **************************************************************************************************************************************
		var Pageing			= "";
		var FontColor		= "red";

		var imgName_1		= "<img src='../../Images/Pub/bul_first.gif' border='0' align='absmiddle' alt='最初'>&nbsp;最初";
		var imgName_2		= "<img src='../../Images/Pub/bul_prev.gif' border='0' align='absmiddle' alt='戻る'>&nbsp;戻る ";
		var imgName_3		= "次へ&nbsp;<img src='../../Images/Pub/bul_next.gif' border='0' align='absmiddle' alt='次へ'>";
		var imgName_4		= "最後&nbsp;<img src='../../Images/Pub/bul_last.gif' border='0' align='absmiddle' alt='最後'>";		
		
		var startPage;
		var endPage;
		
		if (intMinSeq == "") intMinSeq = 1;
		if (intMaxSeq == "") intMaxSeq = 1;
				
		var pageName = fnc_Return_Query_Url()
	    var strTempUrl = fnc_Return_Query_String()

		strTempUrl = strTempUrl.replace('&strRefLink=Body', '&strRefLink=LstSearch')
		strTempUrl = strTempUrl.replace('&strRefLink=Head', '&strRefLink=LstSearch')
		strTempUrl = strTempUrl.replace('&strRefLink=FrmSearch', '&strRefLink=LstSearch')

		tiDirection = parseInt(tiDirection);
		intPageSize = parseInt(intPageSize);
		g_intLoop = parseInt(g_intLoop);

		// ｽﾃﾀﾛﾆ菎ﾌﾁ? ************************************************************************************************************************************		
		if (tiDirection == 1 || (tiDirection == 2/* && g_intLoop > intPageSize*/) || (tiDirection == 3 && g_intLoop > intPageSize))
		{
			if (strTempUrl == "")
			{
				Pageing += "<a href='"+ pageName +"?ItemSeq=1&tiDirection=0'>"+ imgName_1 +"</a>&nbsp;";
			
			}
			else
			{
				Pageing += "<a href='"+ pageName +"?ItemSeq=1&tiDirection=0&"+ strTempUrl +"'>"+ imgName_1 +"</a>&nbsp;";
			}
		}
		else
		{
		    Pageing += "<font color='#7F7F7F'>" + imgName_1 + "</font>&nbsp;";
		}
		// ***********************************************************************************************************************************************
		
		

		// ﾀﾌﾀ?ﾆ菎ﾌﾁ? ************************************************************************************************************************************		
		if (tiDirection == 1 || (tiDirection == 2/* && g_intLoop > intPageSize*/) || (tiDirection == 3 && g_intLoop > intPageSize))
		{
			if (strTempUrl == "")
			{
				Pageing += "<a href='"+ pageName +"?ItemSeq="+ intMaxSeq +"&tiDirection=3'>"+ imgName_2 +"</a>&nbsp;";
			
			}
			else
			{
				Pageing += "<a href='"+ pageName +"?ItemSeq="+ intMaxSeq +"&tiDirection=3&"+ strTempUrl +"'>"+ imgName_2 +"</a>&nbsp;";
				
			}			
		}
		else
		{
		    Pageing += "<font color='#7F7F7F'>" + imgName_2 + "</font>&nbsp;";
		}
		// ***********************************************************************************************************************************************

	
		// ｴﾙﾀｽﾆ菎ﾌﾁ? ************************************************************************************************************************************
		//alert(g_intLoop + "--" + intPageSize)
		if ((tiDirection == 0 && g_intLoop > intPageSize) || (tiDirection == 2 && g_intLoop > intPageSize) || (tiDirection == 3/* && g_intLoop > intPageSize*/))
		{
			if (strTempUrl == "")
			{
				Pageing += "<a href='"+ pageName +"?ItemSeq="+ intMinSeq +"&tiDirection=2'>"+ imgName_3 +"</a>&nbsp;";
			
			}
			else
			{
				Pageing += "<a href='"+ pageName +"?ItemSeq="+ intMinSeq +"&tiDirection=2&"+ strTempUrl +"'>"+ imgName_3 +"</a>&nbsp;";
				
			}			
		}
		else
		{
			Pageing += "<font color='#7F7F7F'>" + imgName_3 + "</font>&nbsp;";
		}
		// ***********************************************************************************************************************************************
		
		
		
		// ｸｶﾁｷﾆ菎ﾌﾁ? **********************************************************************************************************************************		
		
		if ((tiDirection == 0 && g_intLoop > intPageSize) || (tiDirection == 2 && g_intLoop > intPageSize) || (tiDirection == 3/* && g_intLoop > intPageSize*/))
		{	
			if (strTempUrl == "")
			{
				Pageing += "<a href='"+ pageName +"?ItemSeq="+ intMinSeq +"&tiDirection=1'>"+ imgName_4 +"</a>&nbsp;";
			
			}
			else
			{
				Pageing += "<a href='"+ pageName +"?ItemSeq="+ intMinSeq +"&tiDirection=1&"+ strTempUrl +"'>"+ imgName_4 +"</a>&nbsp;";
			}
		}
		else
		{
			Pageing += "<font color='#7F7F7F'>" + imgName_4 + "</font>&nbsp;";
		}
		// ***********************************************************************************************************************************************		
		Pageing = "<span class='b_text'>" + Pageing + "</span>";
      var pageingID = null;
      if(document.all)
		   pageingID = document.all(objID);
      else 
      {
         pageingID = document.getElementById(objID);
         if(!pageingID)
         {
            var tmpID = document.getElementsByName(objID);
            if(tmpID)
               pageingID = tmpID[0];
         }
      }
      pageingID.innerHTML = Pageing;
	}
//-->

