var BVisLoaded = false; 

//Function to jump to new location.
function jumpTo(formname){
		var f = eval('document.'+formname);
		if(f){
			var i = f.select.selectedIndex;
			var select = f.select.options[i].value;
			if(!i || !select) {
				return;
			}
			window.location = select;
		}
}

//Function to change comment.
function changeComment (divId) {

if(divId == 1)
	{
		document.getElementById("linkJComment1").innerHTML = review1;
	}
		else if (divId == 2)
	{
		document.getElementById("linkJComment2").innerHTML = review2;
	}
	else if(divId == 3)
	{
		document.getElementById("linkJComment3").innerHTML = review3;
	}
	
}

//Function to display customer ratings.
function ratingsDisplayed(totalReviewsCount, avgRating, ratingsOnlyReviewCount, buyAgainPercentage)
{
     if (totalReviewsCount > 0) {
         document.getElementById("BVReviewsContainer").style.display = "block";
		 var countreviewandcomment = totalReviewsCount-ratingsOnlyReviewCount;
		 
     }
     // Other custom items leveraging these values.
}

//Function to check BV load state.
function BVcheckLoadState(){
        if(!BVisLoaded){
            document.getElementById('BVSubmissionFrame').src="";
            // If the content was not pushed, show a friendly message
            document.getElementById('BVSubmissionContainer').innerHTML = 'Review Submission Currently Unavailable';
        }
}