
function hideBtn(btnName1,btnName2,divName){
	//alert(btnName);
	document.getElementById(btnName1).style.display = "none";
	document.getElementById(btnName2).style.display = "";
	
	var chk_div = document.getElementById(divName);
	
	if ( chk_div.style.display=='block' ) {
	chk_div.style.display='none';
	}
	else if ( chk_div.style.display=='none' ) {
	chk_div.style.display='block';
	}

}
	


//////////////////////////////
// Price Total for Order page

function total_check()
{
	d1 = document.form1.dropdown1.value;
	d2 = parseInt(document.form1.dropdown2.value);
	d3 = parseInt(document.form1.dropdown3.value);	
	uniL = 0;
	reviL = 0;
	priceL=0;
	chk_val = 0;
	chk_val2 = 0;
	
	if (d1 == "pkg1" ) { uniL =1; reviL =1; priceL=25; }
	else if (d1 == "pkg2") { uniL =2; reviL =1; priceL=35; }
	else if (d1 == "pkg3") { uniL =3; reviL =3; priceL=65; }
	else if (d1 == "pkg4") { uniL =5; reviL =5; priceL=140; }
	else if (d1 == "pkg4") { uniL =5; reviL =5; priceL=140; }
	else { uniL =0; reviL =0; priceL=0; }
	
	
	for(i=1; i<=6; i++)
	{
		if(document.form1["chk"+i].checked)
		{
			chk_val = chk_val+5;
		}
	}

	if(document.form1["chk7"].checked)
	{
		chk_val2 = 10;
	}



	//if packagetype id packa4 then disable others
	if (d1 == "pkg4" )
	{
		for(i=1; i<=6; i++)
		{
			document.form1["chk"+i].checked=true;
			document.form1["chk"+i].disabled=true;
		}
		d4 = priceL+(d2*10)+(d3*10)+chk_val2;
		document.getElementById("total").innerHTML = "US $"+d4;
		document.getElementById("pkg_total").value = "US $"+d4;
		document.getElementById("pkg_contain").innerHTML = uniL+" unique logo(s), "+ reviL +" revision(s)<br />Additional file formats as needed";
		document.getElementById("pkg_con").value = uniL+" unique logo(s), "+ reviL +" revision(s)<br />Additional file formats as needed";
	}
	//if statement end
	else {
		if (sel_package=="pkg4") {
			for(i=1; i<=6; i++)
			{
				document.form1["chk"+i].checked=false;
				document.form1["chk"+i].disabled=false;
				chk_val = 0;
			}
		}
		d4 = priceL+(d2*10)+(d3*10)+chk_val+chk_val2;
		document.getElementById("total").innerHTML = "US $"+d4;
		document.getElementById("pkg_total").value = "US $"+d4;
	
		document.getElementById("pkg_contain").innerHTML = uniL+" unique logo(s), "+ reviL +" revision(s)";
		document.getElementById("pkg_con").value = uniL+" unique logo(s), "+ reviL +" revision(s)";
	}
	//else statement end
	sel_package=d1;
	
}

