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 eyacc(n){
var mc="SubSection-"+n;

if (document.getElementById(mc).style.display == "block") {
$("#SubSection-"+n).slideUp("slow");
$("#Arrow-"+n).attr("src","http://lib.store.yahoo.net/lib/bacheloretteparties/ey-accPlus.jpg");
} 
else {

$("#SubSection-"+n).slideDown("slow");
$("#Arrow-"+n).attr("src","http://lib.store.yahoo.net/lib/bacheloretteparties/ey-accMinus.jpg");
}
}

function changeReview()
{
if (document.getElementById("reviewTab").style.display == "block") {
$("#reviewTab").css("display","none");
} 
else {
$("#reviewTab").css("display","block");
document.theform.name1.focus();
}
}

function switchDefault(m,n,h,j){
$(".mainPic").css("display", "none");
$("#SwitchThisImage").attr("src", n);
$("#pic"+m).css("display","block");
$("#SwitchThisImage").css("height",h+"px");
$("#SwitchThisImage").css("width",j+"px");
}
function layerPopupClose()
{
$(".layerPopup").css("display","none");
}
function popHide()
{
$("#light").css("display","none");
$("#fade").css("display","none");
}
function changeImage(i,h,j){
$("#SwitchThisImage").css("display", "none");
$("#SwitchThisImage").attr("src", i);
$("#SwitchThisImage").fadeIn("slow");
$("#SwitchThisImage").css("height",h+"px");
$("#SwitchThisImage").css("width",j+"px");
}
$(function(){
var l=(screen.width-728)/2;
$(".white_content").css("left", l+"px");
});