// JavaScript Document
;

function showDiv(val)
{
	
	if(val=="1")
		document.getElementById("divShow").style.display="block";
	else if(val=="0")
		document.getElementById("divShow").style.display="none";
}



function addToCart()
{
	newCounter=document.getElementById("counterThis").value;
	
	var qntCounter;
	qntCounter=0;
	for(counter=0;counter<newCounter;counter++)
	{
		
		arrayCount=document.getElementById("quantity["+counter+"]");
				
		if(isNaN(arrayCount.value))
		{
			++qntCounter;
		}//if
	}
	
	if(qntCounter>0)
	{
		alert("Please enter valid quantity");
		return false;
	}
	else
	{
		form.submit();
	}
}


function callAll(form,field)
{
	index_sep=14;
	
	if(field.checked)
	{
		for(counter=1;counter<=13;counter++)
		{
			index_sep++;
			if(index_sep==22)
			{
				form[index_sep].selectedIndex=form[counter].selectedIndex;
			}
			else
				form[index_sep].value=form[counter].value;
		}
		
	}
	else
	{
		index_sep=14
		for(counter=0;counter<=12;counter++)
		{
			index_sep++;
			if(index_sep==22)
			{
				form[index_sep].selectedIndex=0;
			}
			else
				form[index_sep].value="";
		}
	}

}

