// JavaScript Document
	var browserType;

	if (document.layers) {browserType = "nn4"}
	if (document.all) {browserType = "ie"}
	if (window.navigator.userAgent.toLowerCase().match("gecko")) {
	   browserType= "gecko"
	}
	
	function hide(idString) {
	  if (browserType == "gecko" )
		 document.poppedLayer = 
			 eval('document.getElementById(idString)');
	  else if (browserType == "ie")
		 document.poppedLayer = 
			eval('document.getElementById(idString)');
	  else
		 document.poppedLayer =   
			eval('document.layers[idString]');
	  document.poppedLayer.style.visibility = "hidden";
	}
	
	function show(idString) {
	  if (browserType == "gecko" )
		 document.poppedLayer = 
			 eval('document.getElementById(idString)');
	  else if (browserType == "ie")
		 document.poppedLayer = 
			eval('document.getElementById(idString)');
	  else
		 document.poppedLayer = 
			 eval('document.layers[idString');
	  document.poppedLayer.style.visibility = "visible";
	}
	

	
	function chkcontrol3(j) {
		var total=0;
		for(var i=0; i < document.form3concert.ckb.length; i++){
		if(document.form3concert.ckb[i].checked){
		total =total +1;}
		if(total<3){hide("addToCart2");show("addToCart2off");}
		else{show("addToCart2");hide("addToCart2off");}
		if(total > 3){
		document.form3concert.ckb[j].checked = false;
		return false;}}
	}
	
	function recheck(j) {
	document.form4concert_a.ckb[j].checked = true ;}
	
	function chkcontrol4(j) {
    if(document.form4concert_b.ckb[j].checked){
		document.form4concert_b.ckb[j].checked = true;
		document.form4concert_b.ckb[Math.abs(j-1)].checked = false;
	}
	else{
		document.form4concert_b.ckb[j].checked = true;
	}
	}
	
	function check3concerts() {
		var total=0;
		for(var i=0; i < document.form3concert.ckb.length; i++){
			if(document.form3concert.ckb[i].checked){
			total =total +1;}
		}
		if(total<3){
		alert('Please select 3 concerts.')
		}
	}
	


