<!--
function popupWindow(url)
{
    window.open(url,'Big_Picture','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=650,height=650,top=0,left=0');
    //return true;
}
function productSearch()
{
    var val = document.forms[0].keywords.value;
    //if(val != null && val.length > 3){
        location.href = '/ProductSearchResult.aspx?keyword=' + val;
    //}else{
    //    alert('The keyword is too short');
    //}
}
function testForEnter() 
{    
    if (event.keyCode == 13) 
    {        
        event.cancelBubble = true;
        event.returnValue = false;
    }
}
function pageSkip(){
   var val =  document.getElementById("ctl00_ContentPlaceHolder_Customer_url").value + "/page" + 
        document.forms[0].pageSelect.options[document.forms[0].pageSelect.selectedIndex].value;
    location.href = val + '.aspx';
} 
function pageSkip2(){
   var val = document.getElementById("ctl00_ContentPlaceHolder_Customer_url").value + "/page" + 
        document.forms[0].pageSelect2.options[document.forms[0].pageSelect2.selectedIndex].value;
    location.href = val + '.aspx';
} 
function pageFeaturedSkip(){
    var val = document.forms[0].pageSelect.options[document.forms[0].pageSelect.selectedIndex].value;
    var sortID = document.getElementById("ctl00_ContentPlaceHolder_Customer_hidSortID").value;
    location.href = '/featuredproducts/' + sortID + '/page' + val + '.aspx';
} 
function pageFeaturedSkip2(){
    var val = document.forms[0].pageSelect2.options[document.forms[0].pageSelect2.selectedIndex].value;
    var sortID = document.getElementById("ctl00_ContentPlaceHolder_Customer_hidSortID").value;
    location.href = '/featuredproducts/' + sortID + '/page' + val + '.aspx';
}

function pageSearchSkip(){
    var val = document.getElementById("ctl00_ContentPlaceHolder_Customer_hidUrl").value + "/page" + 
        document.forms[0].pageSelect.options[document.forms[0].pageSelect.selectedIndex].value;
    location.href = '/ProductSearchResult/' + val + '.aspx';
} 
function pageSearchSkip2(){
    var val = document.getElementById("ctl00_ContentPlaceHolder_Customer_hidUrl").value + "/page" 
        + document.forms[0].pageSelect2.options[document.forms[0].pageSelect2.selectedIndex].value;
    location.href = '/ProductSearchResult/' + val + '.aspx';
} 

function AddToCart(prodID){
    location.href = '/ShoppingCart.aspx?prodID=' + prodID;
}

//2010-1-20
function pageSprcialSkip(){
    var val = document.forms[0].pageSelect.options[document.forms[0].pageSelect.selectedIndex].value;
    location.href = '/SpecialProducts.aspx?pageNumber=' + val;
} 
function pageSpecialSkip2(){
    var val = document.forms[0].pageSelect2.options[document.forms[0].pageSelect2.selectedIndex].value;
    location.href = '/SpecialProducts.aspx?pageNumber=' + val;
} 


//2010-3-12
function init(){
     if(document.getElementById("ctl00_hlSort").value != ""){
         var s = document.getElementById("ctl00_hlSort").value;
         document.getElementById("sort"+ s ).style.display="block"; 
     }
}

function show(str){
   t=document.getElementById(str).style.display;
   var sorts = new Array ( 1, 3, 4, 5, 9);
   var num = str.substr(1,1);
   for(i=0;i<sorts.length;i++){
        if(sorts[i] == num && t=="none"){
            document.getElementById(str).style.display="block";  
        }else{
            document.getElementById("sort" + sorts[i]).style.display="none";
        }
   }   
}

function f(str)
{
   t=document.getElementById(str).style.display;
   if (t=="none")
   {
      document.getElementById(str).style.display="block";  
   }
   else
   {
      document.getElementById(str).style.display="none";
   }
}

function move1(str1,i)
{
   old=document.getElementById(str1).className;
   m="s"+str1.substr(1,1);
   if(i==0)
   {
        // document.getElementById(str1).className="redout";
         news=document.getElementById(m).style.display;
         if(news=="none")
         {
            document.getElementById(str1).className="redout";
         }
         else
         {
            document.getElementById(str1).className="redclass";
         }
    }
    else
    {
         document.getElementById(str1).className="redclass";
    }
}
function move(str1,i)
{
    if(i==0)
    {
         document.getElementById(str1).className="moveout";
    }
    else
    {
         document.getElementById(str1).className="move";
    }
}
//--->
