function SelectBand()
{
     for(i=0;i<=BandArea.childNodes.length;i++)
     {
	     BandArea.childNodes[i].style.backgroundColor="";
	 }
}
function SelectSale()
{
     for(i=0;i<=SaleArea.childNodes.length;i++)
     {
	     SaleArea.childNodes[i].style.backgroundColor="";
	 }
}
function SelectType()
{
     for(i=0;i<=TypeArea.childNodes.length;i++)
     {
	     TypeArea.childNodes[i].style.backgroundColor="";
	 }
}
function SelectSize()
{
     for(i=0;i<=SizeArea.childNodes.length;i++)
     {
	     SizeArea.childNodes[i].style.backgroundColor="";
	 }
}
function SelectStyle()
{
     for(i=0;i<=StyleArea.childNodes.length;i++)
     {
	     StyleArea.childNodes[i].style.backgroundColor="";
	 }
}
function SelectSeries()
{
     for(i=0;i<=SeriesArea.childNodes.length;i++)
     {
	     SeriesArea.childNodes[i].style.backgroundColor="";
	 }
}
function SelectPic()
{
     for(i=0;i<=PicArea.childNodes.length;i++)
     {
	     PicArea.childNodes[i].style.backgroundColor="";
	 }
}
function LoadUrl()
{
 var strLink= document.URL;
 var str = strLink.substring(strLink.indexOf("?")+1);
 strs=str.split("&");
 
    if(str.indexOf("ST=1")>0)
    {
       document.getElementById("imgg1").src="/images/view_02.jpg"; 
       document.getElementById("imgg2").src="/images/view_01.jpg";
    }
    if(str.indexOf("ST=2")>0)
    {
       document.getElementById("imgg1").src="/images/view_02_2.jpg"; 
       document.getElementById("imgg2").src="/images/view_01_2.jpg";
    }

for(var i=1;i<strs.length;i++)
{
     var str1=strs[i].substring(strs[i].indexOf("=")+1);
     if(strs[i].indexOf("BandID=")>=0)
     {
	 document.getElementById("Ba"+str1).style.color="#FFFFFF";
	 document.getElementById("Ba"+str1).style.backgroundColor="#722703";
 	 document.getElementById("Ba"+str1).style.padding="2px";
 	 document.getElementById("Ba"+str1).style.paddingLeft="3px"
	 document.getElementById("Ba"+str1).style.paddingright="3px"
     }
     if(strs[i].indexOf("SaleID=")>=0)
     {
	 document.getElementById("Sa"+str1).style.color="#FFFFFF";
	 document.getElementById("Sa"+str1).style.backgroundColor="#722703";
 	 document.getElementById("Sa"+str1).style.padding="2px";
 	 document.getElementById("Sa"+str1).style.paddingLeft="3px"
	 document.getElementById("Sa"+str1).style.paddingright="3px"
     }
     if(strs[i].indexOf("TypeID=")>=0)
     {
	 document.getElementById("Ty"+str1).style.color="#FFFFFF";
	 document.getElementById("Ty"+str1).style.backgroundColor="#722703";
 	 document.getElementById("Ty"+str1).style.padding="2px";
 	 document.getElementById("Ty"+str1).style.paddingLeft="3px"
	 document.getElementById("Ty"+str1).style.paddingright="3px"
     }
     if(strs[i].indexOf("SizeID=")>=0)
     {
	 document.getElementById("Siz"+str1).style.color="#FFFFFF";
	 document.getElementById("Si"+str1).style.backgroundColor="#722703";
 	 //document.getElementById("Si"+str1).style.padding="2px";
 	 //document.getElementById("Si"+str1).style.paddingLeft="3px"
	 //document.getElementById("Si"+str1).style.paddingright="3px"
     }
     if(strs[i].indexOf("StyleID=")>=0)
     {
	 document.getElementById("St"+str1).style.color="#FFFFFF";
	 document.getElementById("St"+str1).style.backgroundColor="#722703";
 	 document.getElementById("St"+str1).style.padding="2px";
 	 document.getElementById("St"+str1).style.paddingLeft="3px"
	 document.getElementById("St"+str1).style.paddingright="3px"
     }
     if(strs[i].indexOf("SeriesID=")>=0)
     {
	 document.getElementById("Se"+str1).style.color="#FFFFFF";
	 document.getElementById("Se"+str1).style.backgroundColor="#722703";
 	 document.getElementById("Se"+str1).style.padding="2px";
 	 document.getElementById("Se"+str1).style.paddingLeft="3px"
	 document.getElementById("Se"+str1).style.paddingright="3px"
     }
     if(strs[i].indexOf("Price=")>=0)
     {
	 document.getElementById("Picc"+str1).style.color="#FFFFFF";
	 document.getElementById("Pic"+str1).style.backgroundColor="#722703";
         //document.getElementById("Pic"+str1).style.backgroundColor="#D0D0D0";
 	 //document.getElementById("Pic"+str1).style.border="solid 1px red";
     }
     if(strs[i].indexOf("DisCount=")>=0)
     {
	 document.getElementById("Picc"+str1).style.color="#FFFFFF";
	 document.getElementById("Pic"+str1).style.backgroundColor="#722703";
         //document.getElementById("Pic"+str1).style.backgroundColor="#D0D0D0";
 	 //document.getElementById("Pic"+str1).style.border="solid 1px red";
     }
}
}
function LoadUrlNew()
{
 var strLink= document.URL;
 var str = strLink.substring(strLink.indexOf("?")+1);
 strs=str.split("&");
for(var i=1;i<strs.length;i++)
{
     var str1=strs[i].substring(strs[i].indexOf("=")+1);
     if(strs[i].indexOf("BandID=")>=0)
     {
	 document.getElementById("Ba"+str1).style.color="#FFFFFF";
	 document.getElementById("Ba"+str1).style.backgroundColor="#722703";
 	 document.getElementById("Ba"+str1).style.padding="2px";
 	 document.getElementById("Ba"+str1).style.paddingLeft="3px"
	 document.getElementById("Ba"+str1).style.paddingright="3px"
     }
	 if(strs[i].indexOf("TypeID=")>=0)
     {
	 document.getElementById("Ty"+str1).style.color="#FFFFFF";
	 document.getElementById("Ty"+str1).style.backgroundColor="#722703";
 	 document.getElementById("Ty"+str1).style.padding="2px";
 	 document.getElementById("Ty"+str1).style.paddingLeft="3px"
	 document.getElementById("Ty"+str1).style.paddingright="3px"
     }
     if(strs[i].indexOf("SaleID=")>=0)
     {
	 document.getElementById("Sa"+str1).style.color="#FFFFFF";
	 document.getElementById("Sa"+str1).style.backgroundColor="#722703";
 	 document.getElementById("Sa"+str1).style.padding="2px";
 	 document.getElementById("Sa"+str1).style.paddingLeft="3px"
	 document.getElementById("Sa"+str1).style.paddingright="3px"
     }
     if(strs[i].indexOf("SizeID=")>=0)
     {
	 document.getElementById("Siz"+str1).style.color="#FFFFFF";
	 document.getElementById("Si"+str1).style.backgroundColor="#722703";
     }
     if(strs[i].indexOf("StyleID=")>=0)
     {
	 document.getElementById("St"+str1).style.color="#FFFFFF";
	 document.getElementById("St"+str1).style.backgroundColor="#722703";
 	 document.getElementById("St"+str1).style.padding="2px";
 	 document.getElementById("St"+str1).style.paddingLeft="3px"
	 document.getElementById("St"+str1).style.paddingright="3px"
     }
	 if(strs[i].indexOf("SexID=")>=0)
     {
	 document.getElementById("Sx"+str1).style.color="#FFFFFF";
	 document.getElementById("Sx"+str1).style.backgroundColor="#722703";
 	 document.getElementById("Sx"+str1).style.padding="2px";
 	 document.getElementById("Sx"+str1).style.paddingLeft="3px"
	 document.getElementById("Sx"+str1).style.paddingright="3px"
     }
     if(strs[i].indexOf("SeriesID=")>=0)
     {
	 document.getElementById("Se"+str1).style.color="#FFFFFF";
	 document.getElementById("Se"+str1).style.backgroundColor="#722703";
 	 document.getElementById("Se"+str1).style.padding="2px";
 	 document.getElementById("Se"+str1).style.paddingLeft="3px"
	 document.getElementById("Se"+str1).style.paddingright="3px"
     }
     if(strs[i].indexOf("order=")>=0)
     {
	 document.getElementById("o"+str1).style.color="#FFFFFF";
	 document.getElementById("o"+str1).style.backgroundColor="#722703";
 	 document.getElementById("o"+str1).style.padding="2px";
 	 document.getElementById("o"+str1).style.paddingLeft="3px"
	 document.getElementById("o"+str1).style.paddingright="3px"
     }
     if(strs[i].indexOf("Price=")>=0)
     {
	 document.getElementById("Picc"+str1).style.color="#FFFFFF";
	 document.getElementById("Pic"+str1).style.backgroundColor="#722703";
     }
     if(strs[i].indexOf("DisCount=")>=0)
     {
	 document.getElementById("Diss"+str1).style.color="#FFFFFF";
	 document.getElementById("Dis"+str1).style.backgroundColor="#722703";
     }
}
}
