function changeTabbedItem(b){
if(b == "1")
{
$(".tabbedLinks").css("background", "url(http://lib.store.yahoo.net/lib/yhst-92803816272180/ey-tabbedNameBG.jpg) no-repeat scroll center top");
}
else if(b == "2")
{
$(".tabbedLinks").css("background", "url(http://lib.store.yahoo.net/lib/yhst-92803816272180/ey-tabbedNameBG.jpg) no-repeat scroll center -33px");
}
else if(b == "3")
{
$(".tabbedLinks").css("background", "url(http://lib.store.yahoo.net/lib/yhst-92803816272180/ey-tabbedNameBG.jpg) no-repeat scroll center -66px");
}
else if(b == "4")
{
$(".tabbedLinks").css("background", "url(http://lib.store.yahoo.net/lib/yhst-92803816272180/ey-tabbedNameBG.jpg) no-repeat scroll center -99px");
}
else if(b == "5")
{
$(".tabbedLinks").css("background", "url(http://lib.store.yahoo.net/lib/yhst-92803816272180/ey-tabbedNameBG.jpg) no-repeat scroll center -132px");
}
else
{
$(".tabbedLinks").css("background", "url(http://lib.store.yahoo.net/lib/yhst-92803816272180/ey-tabbedNameBG.jpg) no-repeat scroll center -165px");
}

$(".tabbedA").removeClass('selectedTabb');
$("#TabbedA" + b).addClass('selectedTabb');
$(".tabbedItemsTable").css("display", "none");
$("#TabbedItemsTable" + b).css("display", "block");

}

function changeTab(b){
$(".tabs").css("display","none");
$("#Tab"+b).css("display","block");
}

function showDD(selectedDD)
{
if(document.getElementById(selectedDD).style.display == "block")
{
$("#"+selectedDD).css("display", "none");
}
else
{
$(".headerDropDown").css("display", "none");
$("#"+selectedDD).css("display", "block");
}
}

function hideAllDD()
{
$(".headerDropDown").css("display", "none");
}

function check()
{
  if(document.theform.name1.value.length==0)
  {
   alert('Please enter your name');
   document.theform.name1.focus();
   return;
  }
  if(document.theform.title.value.length==0)
  {
   alert('Please enter a review title');
   document.theform.title.focus();
   return;
  }
  if(document.theform.review.value.length==0)
  {
   alert('Please enter your product review');
   document.theform.review.focus();
   return;
  }
  if(document.theform.stars.value=="nil")
  {
   alert('Please enter the amount of stars');
   document.theform.stars.focus();
   return;
  }
  if (document.theform.name1.value.match(/\|/))
  {
   alert('Invalid Character in the Name Field');
   document.theform.name1.focus();
   return;
  }
  if(document.theform.title.value.match(/\|/))
  {
   alert('Invalid Character in review title');
   document.theform.title.focus();
   return;
  }
  if(document.theform.review.value.match(/\|/))
  {
   alert('Invalid Character in product review');
   document.theform.review.focus();
   return;
  }

  document.theform.submit();
  document.theform.stars.value="";
  document.theform.name1.value="";
  document.theform.title.value="";
  document.theform.review.value="";
}

function showTable()
{
  document.getElementById('ReviewShow').style.display='inline';
  document.getElementById('ReviewLink').style.display='none';
}
