var myGoods=""
myGoods = myGoods + "
"
myGoods = myGoods + "| "
myGoods = myGoods + ""
myGoods = myGoods + " |
"
myGoods = myGoods + "
"
function UpDiv(){
if(goodsCnt == 0){return false;}
dispOn = 0
dispOnLastNum = 0
dispCnt = 1
for(i=goodsCnt; i>0; i--)
{
if(document.getElementById('page'+i) != null)
{
if(document.getElementById('page'+i).style.display == 'inline')
{
if(dispOn==0)
{
dispOnLastNum = i
dispOn++
}
}
}
}
if(goodsCnt == dispOnLastNum)
{
alert("Ãֱ٠ù »óǰÀÔ´Ï´Ù")
return false;
}
//alert("dispOn : " + dispOn + " dispOnLastNum : " + dispOnLastNum)
for(i=goodsCnt; i>0; i--)
{
if(document.getElementById('page'+i) != null)
{
document.getElementById('page'+i).style.display='none'
}
}
if(goodsCnt>3)
{
dispOnLastNum = dispOnLastNum + 1
}
//alert(dispOnLastNum)
for(i=goodsCnt; i>0; i--)
{
if(document.getElementById('page'+i) != null)
{
if((i <= dispOnLastNum) && (dispCnt < 4))
{
document.getElementById('page'+i).style.display = 'inline'
dispCnt++
}
}
}
}
function DownDiv(){
if(goodsCnt == 0){return false;}
dispOn = 0
dispOnLastNum = 0
dispCnt = 1
for(i=goodsCnt; i>0; i--)
{
if(document.getElementById('page'+i) != null)
{
if(document.getElementById('page'+i).style.display == 'inline')
{
if(dispOn==0)
{
dispOnLastNum = i
dispOn++
}
}
}
}
if(dispOnLastNum<4)
{
alert("¸¶Áö¸· »óǰÀÔ´Ï´Ù")
return false;
}
//alert("dispOn : " + dispOn + " dispOnLastNum : " + dispOnLastNum)
for(i=goodsCnt; i>0; i--)
{
if(document.getElementById('page'+i) != null)
{
document.getElementById('page'+i).style.display='none'
}
}
if(goodsCnt>3)
{
dispOnLastNum = dispOnLastNum - 1
}
//alert(dispOnLastNum)
for(i=goodsCnt; i>0; i--)
{
if(document.getElementById('page'+i) != null)
{
if((i <= dispOnLastNum) && (dispCnt < 4))
{
document.getElementById('page'+i).style.display = 'inline'
dispCnt++
}
}
}
}
function CookieCnt()
{
allCookies=document.cookie.split("scrollItem");
if (allCookies.length < 1)
{
goodsCnt = 0
}
else
{
goodsCnt = allCookies.length-1
}
}
function GetCookie(){
//alert(document.cookie);
allCookies=document.cookie.split("scrollItem");
str = "";
pgCnt = 1;
pgDisp = "inline"
for(i=allCookies.length-1; i>0; i--)
{
GoodsStr = unescape(allCookies[i]);
cookieArray=GoodsStr.split(";");
pkgCode = cookieArray[0]
pkgCode = pkgCode.substring(pkgCode.indexOf("=")+1,pkgCode.length)
if(pgCnt>3)
{
pgDisp = "none"
}
str = str + ""
str = str + "
"
str = str + ""
str = str + ""
str = str + " ";
str = str + " |
"
str = str + "
"
str = str + "
"
pgCnt++
}
}
document.write(myGoods)