﻿//Specify URLs to randomly select from and popup/popunder:
//To display a single URL, just remove all but the first entry below:

//var popurls=new Array()
//popurls[0]="feedback.html"

//function openpopup(popurl)
//{
// var winpops=window.open(popurl,"","width=485,height=220,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no")
//}

//function get_cookie(Name) {
//  var search = Name + "="
//  var returnvalue = "";
//  if (document.cookie.length > 0) {
    //offset = document.cookie.indexOf(search)
    //if (offset != -1) { // if cookie exists
     // offset += search.length
      // set index of beginning of value
     // end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      //if (end == -1)
      //   end = document.cookie.length;
      //returnvalue=unescape(document.cookie.substring(offset, end))
     // }
  // }
  //return returnvalue;
//}

//-**************  Done By Praveen **************
//function loadornot()
//{
 //   if (get_cookie('jkpopup')=='')
  //  {        
        //window.alert('hi_1');   
  //      openpopup(popurls[Math.floor(Math.random()*(popurls.length))])
  //      document.cookie="jkpopup=yes"
  //  }
  //  else
  //  {
  //      if (get_cookie('SeeLtr')!='')
  //      {          
            //window.alert('hi');   
  //          openpopup(popurls[Math.floor(Math.random()*(popurls.length))])           
  //      }
  //  }
//}

//var count = 300000;

//t = null;

//function closeMe()
//{
//    if(get_cookie('SeeLtr')!='')
//    {
        //window.alert('hi_timeOut'); 
//        t = setTimeout("loadornot()",count);
//    }    
//    else
//    {
//        loadornot();
//    } 
//}
  
//closeMe();      

//**************  Upto Here  **************


function orderStat()
{

var browser=navigator.appName;
//var version=parseFloat(navigator.appVersion);

var he=document.getElementById("order_cont");
var ref=document.getElementById("support");

        if(he.style.display=='none')
        {
        he.style.display="block";
        
            if(browser=="Microsoft Internet Explorer")
            {
                ref.style.width = he.offsetWidth;
                ref.style.height = he.offsetHeight - 30;
                ref.style.top = he.style.top;
                ref.style.right = "55px";
                ref.style.zIndex = "99";
                ref.style.display = "block";
            }            
        }
        else
        {
        he.style.display="none";
        ref.style.display="none";
        }

}

//function orderStat_cross()
//{
//var he=document.getElementById("order_cont").style;

//    if(he.display=="block")
//    {
//    document.getElementById("order_cont").style.display="none";
//    }
//}


  
function afill_BlogUrl()
{    //alert(ebj);
    var val=document.getElementById("ctl00_contPage_txtBlogTitle").value;
    var eal=document.getElementById("ctl00_contPage_txtBlogURL");

    val = val.replace(/[^a-zA-Z0-9]/g,'-');
    
    if(val.length > 0)
    {
        if(val.substring(0,1) == '-')
            val = val.substring(1,val.length);
            
        if(val.substring(val.length-1,val.length) == '-')
            val = val.substring(0,val.length-1);
    }
    eal.value = val;
}



   function Pop_coins(strPath)
    {
    window.open(strPath,'privacy','width=635,height=600,scrollbars=yes,resizable=0,menubar=no,toolbar=no,location=no,status=no,copyhistory=no');
    }

   function Pop_blog(strPath)
    {
    window.open(strPath,'privacy','width=400,height=200,scrollbars=yes,resizable=0,menubar=no,toolbar=no,location=no,status=no,copyhistory=no');
    }



    function Pop(strpath)
    {
    window.open(strpath,'privacy','height=560,width=635,scrollbars=no,resizable=1,menubar=no,toolbar=no,location=no,status=no,copyhistory=no');
    }



function OpenPoup()
{

if (event.altKey==true && event.keyCode==0 )
{
  var winpops=window.open("feedback.html","","width=485,height=220,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no")
}

if(window.event.clientY < 0 && window.event.clientY < -80)
{
  var winpops=window.open("feedback.html","","width=485,height=220,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no")
}
 
}

function ValidateForm()
        {
         try
         {
         var disName=document.aspnetForm.ctl00$txtSearch.value;
         
         //var catName=document.aspnetForm.ctl00_ddlSearch.value;
       	 if(disName=="")
	        {
		    alert("Please enter the product to search !!!");
		    document.aspnetForm.ctl00$txtSearch.focus();
		    return false;
	        }
        
//	        if(catName=="0")
//	        {
//	        alert("Please select a category !!!");
//		    document.aspnetForm.ctl00_ddlSearch.focus();
//		    return false;
//	        }
           }
           catch(ex)           
           {
                alert("Error!!!")
           }
        }
        
        function self()
        {
            var me=document.getElementById("parent").style;
            me.display="none";
        }
        function SetTime()
        {
            setTimeout("ShowSurveyPopup()",2000)
            document.getElementById("parent").style.display="none"
        }
        function ShowSurveyPopup()
        {
            document.getElementById("parent").style.visibility = "visible";
        }      
        
        
        function show_div()
        {
        
        var cs="this.className='active'";
        var my=this.document.getElementById("sample");
        var g=this.document.getElementById("gaurav");
                
            if(my.style.display=="none")
            {
                    my.style.display="block"; 
                    g.className = 'drop_act';
                    
                    if(this.document.getElementById("hTab"))
                    {
                     this.document.getElementById("hTab").className='deactive';
                    }
                    
                    if(this.document.getElementById("Li1"))
                    {
                     this.document.getElementById("Li1").className='deactive';
                    }
                    
                    if(this.document.getElementById("Li2"))
                    {
                     this.document.getElementById("Li2").className='deactive';
                    }
                    
                    if(this.document.getElementById("Li3"))
                    {
                     this.document.getElementById("Li3").className='deactive';
                    }
                    
                    if(this.document.getElementById("Li4"))
                    {
                     this.document.getElementById("Li4").className='deactive';
                    }
                    
                    if(this.document.getElementById("Li5"))
                    {
                     this.document.getElementById("Li5").className='deactive';
                    }
                    
                      if(this.document.getElementById("Li6"))
                    {
                     this.document.getElementById("Li6").className='deactive';
                    }
                    
                    if(this.document.getElementById("shop1"))
                    {
                     this.document.getElementById("shop1").className='deactive';
                    }
                    if(this.document.getElementById("shop2"))
                    {
                     this.document.getElementById("shop2").className='deactive';
                    }
                    if(this.document.getElementById("shop3"))
                    {
                     this.document.getElementById("shop3").className='deactive';
                    }
                    
                    if(this.document.getElementById("Li6"))
                    {
                      this.document.getElementById("Li6").className='deactive';
                    }
                    if(this.document.getElementById("Li7"))
                    {
                     this.document.getElementById("Li7").className='deactive';
                    }
                    if(this.document.getElementById("Li8"))
                    {
                     this.document.getElementById("Li8").className='deactive';
                    }
                    
            }
            else
            {
                    my.style.display="none";
                    g.className = 'drop_deact';    
            }       
        }
          

        function show_div1()
        {
        
        var cs="this.className='active'";
        var my=this.document.getElementById("sample");
        var g=this.document.getElementById("store");
                
            if(my.style.display=="none")
            {
                    my.style.display="block"; 
                    g.className = 'drop_act';
                    
                    if(this.document.getElementById("hTab"))
                    {
                     this.document.getElementById("hTab").className='deactive';
                    }
                    
                    if(this.document.getElementById("Li1"))
                    {
                     this.document.getElementById("Li1").className='deactive';
                    }
                    
                    if(this.document.getElementById("Li2"))
                    {
                     this.document.getElementById("Li2").className='deactive';
                    }
                    
                    if(this.document.getElementById("Li3"))
                    {
                     this.document.getElementById("Li3").className='deactive';
                    }
                    
                    if(this.document.getElementById("Li4"))
                    {
                     this.document.getElementById("Li4").className='deactive';
                    }
                    
                    if(this.document.getElementById("Li5"))
                    {
                     this.document.getElementById("Li5").className='deactive';
                    }
                    
                      if(this.document.getElementById("Li6"))
                    {
                     this.document.getElementById("Li6").className='deactive';
                    }
                    
                    if(this.document.getElementById("shop1"))
                    {
                     this.document.getElementById("shop1").className='deactive';
                    }
                    if(this.document.getElementById("shop2"))
                    {
                     this.document.getElementById("shop2").className='deactive';
                    }
                    if(this.document.getElementById("shop3"))
                    {
                     this.document.getElementById("shop3").className='deactive';
                    }
                    
                    if(this.document.getElementById("Li6"))
                    {
                      this.document.getElementById("Li6").className='deactive';
                    }
                    if(this.document.getElementById("Li7"))
                    {
                     this.document.getElementById("Li7").className='deactive';
                    }
                    if(this.document.getElementById("Li8"))
                    {
                     this.document.getElementById("Li8").className='deactive';
                    }
                    
            }
            else
            {
                    my.style.display="none";
                    g.className = 'drop_deact';    
            }       
        }
 