VS = 0
var sn9="a"
var sn10="a"
var src9="x"
var showingnum=0
var newWindow
cc2=0
var isW3C=(document.getElementById) ? true : false;
function amov(a){
 a.style.textDecoration="underline"
 a.style.color="ff0000"
}
function amou(a){
 a.style.textDecoration="none"
 a.style.color="000000"
}

function FormKeyDown(){
 if (window.event.keyCode==36){
 var elemA=(isW3C)?document.getElementById("X3A"):(document.all("X3A"));
  elemA.focus()
 }
}

function io(a){
 a.style.borderColor='04E3FD'
 a.style.borderWidth='1'
 a.style.borderStyle='solid'
}
function iu(a){
 a.style.borderColor='735E5E'
 a.style.borderWidth='1'
 a.style.borderStyle='solid'
}
function au(){
 window.location="http://www.ebreggae.com/AboutUs.asp"
}
function HidePics(){
 document.cookie="DisplayOptions=Hidden; path=/"
 document.cookie="DisplayOptionsClicked=yes; path=/"
 location.reload()
}
function ShowPics(){
 document.cookie="DisplayOptions=Small; path=/"
 document.cookie="DisplayOptionsClicked=yes; path=/"
 location.reload()
}

function fov(a,q){
 a.src="http://www.ebreggae.com/a/" + q + "l.gif"
}
function fou(a,q){
 a.src="http://www.ebreggae.com/a/" + q + ".gif"
}
function fu(ID,a,q){
 if (ID==sfOnum){
  a.src="http://www.ebreggae.com/a/" + q + "o.gif"
 }else{
  a.src="http://www.ebreggae.com/a/" + q + ".gif"
 }
}
function fv(ID,a,q){
 if (ID==sfOnum){
  a.src="http://www.ebreggae.com/a/" + q + "o.gif"
 }else{
  a.src="http://www.ebreggae.com/a/" + q + "l.gif"
 }
}
function NewOrUsedChoice(a){
  a9=(isW3C)?document.getElementById("X3NU"):document.all("X3NU");
  a9.value=a
}
function EK(){
 if (window.event.keyCode==13){
  VS=1
  a9=(isW3C)?document.getElementById("X3QT"):document.all("X3QT");
  a9.value="NewSearch"
  document.FF.submit()
 }
}
function SO(z){
 VS=1
 a9=(isW3C)?document.getElementById("X3QT"):document.all("X3QT");
 a9.value="NewSort"
 a8=(isW3C)?document.getElementById("X3SO"):document.all("X3SO");
 a8.value=z
 document.FF.submit()
}
function RA(z){
 VS=1
 a9=(isW3C)?document.getElementById("X3QT"):document.all("X3QT");
 a9.value=z
 
 document.FF.submit()
}
function SSX(evt){
 evt=(evt) ? evt : ((window.event) ? event : null)
 if (evt.keyCode==13){
  evt.returnValue=false
  return false
 }
}
function SS(){
 VS=1
 a8=(isW3C)?document.getElementById("SSS"):document.all("SSS");
 if (a8.value==""){
  alert('Please enter the song to search for.')
  a8.focus()
  return false
 }
 a6=(isW3C) ? document.getElementById("SSF") : (document.all("SSF"));
 a7=(isW3C) ? document.getElementById("SSFTxt") : (document.all("SSFTxt"));
 a7.value=a6.value
 a9=(isW3C)?document.getElementById("X3QT"):document.all("X3QT");
 a9.value='SS'
 document.FF.submit()
}
function Sc(){
 if (window.event.keyCode==40){
  window.scrollBy('vert',79)
 }
 else if (window.event.keyCode==38){
  window.scrollBy('vert',-79)
 }
 if (window.event.keyCode==33){
  window.scrollBy('vert',-550)
 }
 else if (window.event.keyCode==34){
  window.scrollBy('vert',550)
 }
 else if (window.event.keyCode==36){
  var A9=(isW3C) ? document.getElementById("X3A") : (document.all("X3A"));
  A9.focus()
  window.scrollBy('vert',-20000)
 }
}
function AL(ID){
 VS=4
 var a9=(isW3C)?document.getElementById("X3QT"):document.all("X3QT")
 var a7=(isW3C)?document.getElementById("X3AID"):document.all("X3AID")
 a9.value="AllLabel"
 a7.value=ID
 document.FF.submit()
}
function AA(ID,P){
 VS=10
 var a9=(isW3C)?document.getElementById("X3QT"):document.all("X3QT")
 var a7=(isW3C)?document.getElementById("X3AID"):document.all("X3AID")
 var a5=(isW3C)?document.getElementById("X3AAN"):document.all("X3AAN")
 a9.value="AllArtist"
 a7.value=ID
 a5.value=P
 document.FF.submit()
}
function AR(ID){
 VS=5
 var a9=(isW3C)?document.getElementById("X3QT"):document.all("X3QT")
 var a7=(isW3C)?document.getElementById("X3AID"):document.all("X3AID")
 a9.value="AllRhythm"
 a7.value=ID
 document.FF.submit()
}
function LRU(){
 VS=6
 var a9=(isW3C)?document.getElementById("X3QT"):document.all("X3QT")
 a9.value='LatestRhythm'
 document.FF.submit()
}
function LRU2(z){
 VS=6
 var a9=(isW3C)?document.getElementById("X3QT"):document.all("X3QT")
 var a8=(isW3C)?document.getElementById("X3LR"):document.all("X3LR")
 a9.value='LatestRhythm'
 a8.value=z.value
 document.FF.submit()
}
function CheckOut(s,t){
 VS=0
 var eCartCQ=(isW3C)?document.getElementById("X3CARTCQ"):document.all("X3CARTCQ")
 if (eCartCQ.value=="yes") {
  alert("Please click the 'Update Cart' button to update the changes you made.  Then you will be able to proceed to 'Check Out'.")
 }
 else{
  if(s==1){
   window.location="https://www.ebreggae.com/PurchaseStore.asp?TTID=" + t
   }
  else{
   window.location="https://www.ebreggae.com/CustomerID.asp"
  }
 }
}
function UpdateCart(){
 var a9=(isW3C)?document.getElementById("TabH"):document.all("TabH")
 a9.value="Cart"
 document.TT.submit()
}
function Page(n,p){
 var a8=(isW3C)?document.getElementById("X3QT"):document.all("X3QT")
 var a9=(isW3C)?document.getElementById("X3SR"):document.all("X3SR")
 var a7=(isW3C)?document.getElementById("X3P"):document.all("X3P")
 a8.value="PageSearch"
 a9.value=n
 a7.value=p
 document.FF.submit()
}
function PageForCart(n,p){
 var a8=(isW3C)?document.getElementById("X3QT"):document.all("X3QT")
 var a9=(isW3C)?document.getElementById("X3SR"):document.all("X3SR")
 var a7=(isW3C)?document.getElementById("X3P"):document.all("X3P")
 var a10=(isW3C)?document.getElementById("TabH"):document.all("TabH")
 a10.value="Cart"
 a8.value="PageSearchForCart"
 a9.value=n
 a7.value=p
 document.FF.submit()
}
function FFV(){
 var a9=(isW3C)?document.getElementById("X3QT"):document.all("X3QT")
 if (VS==0) {
  return false;
  }
 else if (VS==1){
   a9.value="NewSearch"
   return true
  }
 else if (VS==40){
   document.FF.action="http://www.ebreggae.com/SignOut.asp"
   return true
  }
}
function TTV(){
 var a9=(isW3C)?document.getElementById("X3QT"):document.all("X3QT")
 var a7=(isW3C)?document.getElementById("TabH"):document.all("TabH")
 if (VS==0) {
  return false;
  }
 else if (VS==3){
   a7.value="Cart"
   return true
  }
 else if (VS==31){
   document.TT.action="https://www.ebreggae.com/Options.asp"
   return true
  }
 else if (VS==32){
   document.TT.action="http://www.ebreggae.com/AboutUs.asp"
   return true
  }
 else if (VS==30){
   document.TT.action="http://www.ebreggae.com/HelpShipping.asp"
   return true
  }
 else if (VS==37){
   document.TT.action="http://www.ebreggae.com/HelpShipping.asp"
   return true
  }
 else if (VS==33){
   document.TT.action="http://www.ebreggae.com/HelpFrequently.asp"
   return true
  }
 else if (VS==34){
   document.TT.action="http://www.ebreggae.com/Links.asp"
   return true
  }
 else if (VS==35){
   document.TT.action="https://www.ebreggae.com/Wholesale.asp"
   return true
  }
 else if (VS==20){
   a7.value="Search"
   return true
  }
}
function TAU(){
 var elemAC=(isW3C) ? document.getElementById("X3A"):document.all("X3A");
 var elemTA=(isW3C) ? document.getElementById("X3TA"):document.all("X3TA");
 var a5=(isW3C) ? document.getElementById("X3ASE"):document.all("X3ASE");
 elemAC.value=elemTA.value
 a5.value=elemTA.value
 elemAC.focus()
 elemTA.value="a"
}
function AAZ(){
 var a9=(isW3C) ? document.getElementById("X3A"):document.all("X3A");
 var a7=(isW3C) ? document.getElementById("X3AZ"):document.all("X3AZ");
 var a5=(isW3C) ? document.getElementById("X3F"):document.all("X3F");
 a9.value='Begins With '+a7.value+'...'
 a5.focus()
 a7.value="1"
}
function CookiesTest(){
 document.cookie="CookiesEnabled=yes; path=/"
 window.location="http://www.ebreggae.com/Home.asp?TabH=Cart&cookietest=1"
}
function T(z){
 var width=parseInt(screen.availWidth-400-15)
 if (!newWindow || newWindow.closed){
  newWindow=window.open('http://www.ebreggae.com/Sound1.asp?SongID='+z,'MP3PlayerEB','status,scrollbars,height=500,width=400,left='+width+',top=5');
 }else{
  newWindow.focus();
  newWindow=window.open('http://www.ebreggae.com/Sound1.asp?SongID='+z,'MP3PlayerEB','status,scrollbars,height=500,width=400,left='+width+',top=5');
 }
}
function TLU(){
 var a9=(isW3C) ? document.getElementById("X3L"):document.all("X3L");
 var a7=(isW3C) ? document.getElementById("X3TL"):document.all("X3TL");
 var a5=(isW3C) ? document.getElementById("X3F"):document.all("X3F");
 var a3=(isW3C) ? document.getElementById("X3LE"):document.all("X3LE");
 var a1=(isW3C) ? document.getElementById("X3LSE"):document.all("X3LSE");
 a9.value=a7.value
 a1.value=a7.value
 a5.focus()
 a7.value="a"
 a3.value="y"
}
function LE(){
 var a9=(isW3C) ? document.getElementById("X3LE"):document.all("X3LE");
 a9.value=""
}
function HideBODiv(yy){
 varElem=(isW3C) ? document.getElementById(yy):document.all(yy);
 varElem.style.visibility='hidden'
}
function ShowBODiv(yy){
 varElem=(isW3C) ? document.getElementById(yy):document.all(yy);
 varElem.style.visibility='visible'
}
function SD(z){
 a8=(isW3C)?document.getElementById("SSS"):document.all("SSS");
 varElemH=(isW3C) ? document.getElementById(sn10) : (document.all(sn10));
 var elemST=(isW3C) ? document.getElementById("I" + sn9 + "T") : (document.all("I" + sn9 + "T"));
 if (sn9!="a"){
  elemST.style.visibility="hidden"
 }
 if (sn10!="a"){
  varElemH.style.visibility="hidden"
 }
 if (z!=sn10){
  varElem=(isW3C) ? document.getElementById(z):document.all(z);
  varElem.style.visibility='visible'
  sn10=z
  }
  else {sn10="a"
  }
  if (z=="ss12"){a8.focus()
  }
}
function HD(z){
 sn10="a"
 varElem=(isW3C) ? document.getElementById(z):document.all(z);
 varElem.style.visibility='hidden'
}
function CSF(z){
 varElem=(isW3C) ? document.getElementById("ChkSFTxt") : (document.all("ChkSFTxt"));
 if (varElem.value=='on'){
  varElem.value='off'
 }else{
  varElem.value='on'
 }
}
function NR(z){
 varElem=(isW3C) ? document.getElementById("NROTxt") : (document.all("NROTxt"));
 if (z=='ALL'){
  varElem.value=""
 }else{
  varElem.value='yes'
 }
}

function RAF(z){
 varElem=(isW3C) ? document.getElementById("RADBTxt") : (document.all("RADBTxt"));
 varElem.value=z.value
}
function SSFO(z){
 varElem=(isW3C) ? document.getElementById("SSFTxt") : (document.all("SSFTxt"));
 varElem.value=z.value
}
function SSSO(z){
 varElem=(isW3C) ? document.getElementById("SSSTxt") : (document.all("SSSTxt"));
 varElem.value=z.value
}
function iover(a,ID){
 a.style.borderColor='FE1C2B'
 a.style.borderWidth='3'
 a.style.borderStyle='double'
 var elemP=(isW3C) ? document.getElementById("PO" + ID) : (document.all("PO" + ID));
 elemP.src="http://www.ebreggae.com/a/pr3.gif"
}
function TS(id,z){
 if (!newWindow || newWindow.closed){
  newWindow=window.open('http://www.ebreggae.com/SupersizedImage.asp?ImageID='+id+'&IS='+z,'SupersizedImage','status,scrollbars,height=700,width=760,left='+parseInt((screen.availWidth-760)/2)+',top=0');
 }else{
 newWindow.focus();
 newWindow=window.open('http://www.ebreggae.com/SupersizedImage.asp?ImageID='+id+'&IS='+z,'SupersizedImage','status,scrollbars,height=700,width=760,left='+parseInt((screen.availWidth-760)/2)+',top=0');
 }
}
function TL(id,z){
 if (!newWindow || newWindow.closed){
  newWindow=window.open('http://www.ebreggae.com/SupersizedImage.asp?ImageID='+id+'&IS='+z,'SupersizedImage','status,scrollbars,height=700,width=760,left='+parseInt((screen.availWidth-760)/2)+',top=0');
 }else{
 newWindow.focus();
 newWindow=window.open('http://www.ebreggae.com/SupersizedImage.asp?ImageID='+id+'&IS='+z,'SupersizedImage','status,scrollbars,height=700,width=760,left='+parseInt((screen.availWidth-760)/2)+',top=0');
 }
}

