        function buyItem1()
        {

newCategory=document.form1.category1.value;
newQuantity=document.form1.quantity1.value;

permit='true'
                if (newQuantity <= 0) {
                        rc = alert('Please enter quantity!');
                        return false;

                }
                if (newQuantity >= 0) {

                        index = document.cookie.indexOf("TheBasket");
                        countbegin = (document.cookie.indexOf("=", index) + 1);
                        countend = document.cookie.indexOf(";", index);
                        if (countend == -1) {
                                countend = document.cookie.length;
                       }
                        document.cookie="TheBasket="+document.cookie.substring(countbegin, countend)+"["+newCategory+"~"+newQuantity+"]";
						if(permit == 'true')
						{
							rc = alert('"Quantity '+newQuantity+'"\n Product: '+newCategory+' (Added to query Basket)');
						}
                }
        }
        
        
        function buyItem2()
        {

newCategory=document.form1.category2.value;
newQuantity=document.form1.quantity2.value;

permit='true'
                if (newQuantity <= 0) {
                        rc = alert('Please enter quantity!');
                        return false;

                }
                if (newQuantity >= 0) {

                        index = document.cookie.indexOf("TheBasket");
                        countbegin = (document.cookie.indexOf("=", index) + 1);
                        countend = document.cookie.indexOf(";", index);
                        if (countend == -1) {
                                countend = document.cookie.length;
                       }
                        document.cookie="TheBasket="+document.cookie.substring(countbegin, countend)+"["+newCategory+"~"+newQuantity+"]";
						if(permit == 'true')
						{
							rc = alert('"Quantity '+newQuantity+'"\n Product: '+newCategory+' (Added to query Basket)');
						}
                }
        }
        

        function buyItem3()
        {

newCategory=document.form1.category3.value;
newQuantity=document.form1.quantity3.value;

permit='true'
                if (newQuantity <= 0) {
                        rc = alert('Please enter quantity!');
                        return false;

                }
                if (newQuantity >= 0) {

                        index = document.cookie.indexOf("TheBasket");
                        countbegin = (document.cookie.indexOf("=", index) + 1);
                        countend = document.cookie.indexOf(";", index);
                        if (countend == -1) {
                                countend = document.cookie.length;
                       }
                        document.cookie="TheBasket="+document.cookie.substring(countbegin, countend)+"["+newCategory+"~"+newQuantity+"]";
						if(permit == 'true')
						{
							rc = alert('"Quantity '+newQuantity+'"\n Product: '+newCategory+' (Added to query Basket)');
						}
                }
        }




        function buyItem4()
        {

newCategory=document.form1.category4.value;
newQuantity=document.form1.quantity4.value;

permit='true'
                if (newQuantity <= 0) {
                        rc = alert('Please enter quantity!');
                        return false;

                }
                if (newQuantity >= 0) {

                        index = document.cookie.indexOf("TheBasket");
                        countbegin = (document.cookie.indexOf("=", index) + 1);
                        countend = document.cookie.indexOf(";", index);
                        if (countend == -1) {
                                countend = document.cookie.length;
                       }
                        document.cookie="TheBasket="+document.cookie.substring(countbegin, countend)+"["+newCategory+"~"+newQuantity+"]";
						if(permit == 'true')
						{
							rc = alert('"Quantity '+newQuantity+'"\n Product: '+newCategory+' (Added to query Basket)');
						}
                }
        }




        function buyItem5()
        {

newCategory=document.form1.category5.value;
newQuantity=document.form1.quantity5.value;

permit='true'
                if (newQuantity <= 0) {
                        rc = alert('Please enter quantity!');
                        return false;

                }
                if (newQuantity >= 0) {

                        index = document.cookie.indexOf("TheBasket");
                        countbegin = (document.cookie.indexOf("=", index) + 1);
                        countend = document.cookie.indexOf(";", index);
                        if (countend == -1) {
                                countend = document.cookie.length;
                       }
                        document.cookie="TheBasket="+document.cookie.substring(countbegin, countend)+"["+newCategory+"~"+newQuantity+"]";
						if(permit == 'true')
						{
							rc = alert('"Quantity '+newQuantity+'"\n Product: '+newCategory+' (Added to query Basket)');
						}
                }
        }



        function buyItem6()
        {

newCategory=document.form1.category6.value;
newQuantity=document.form1.quantity6.value;

permit='true'
                if (newQuantity <= 0) {
                        rc = alert('Please enter quantity!');
                        return false;

                }
                if (newQuantity >= 0) {

                        index = document.cookie.indexOf("TheBasket");
                        countbegin = (document.cookie.indexOf("=", index) + 1);
                        countend = document.cookie.indexOf(";", index);
                        if (countend == -1) {
                                countend = document.cookie.length;
                       }
                        document.cookie="TheBasket="+document.cookie.substring(countbegin, countend)+"["+newCategory+"~"+newQuantity+"]";
						if(permit == 'true')
						{
							rc = alert('"Quantity '+newQuantity+'"\n Product: '+newCategory+' (Added to query Basket)');
						}
                }
        }
        
        
                function buyItem7()
        {

newCategory=document.form1.category7.value;
newQuantity=document.form1.quantity7.value;

permit='true'
                if (newQuantity <= 0) {
                        rc = alert('Please enter quantity!');
                        return false;

                }
                if (newQuantity >= 0) {

                        index = document.cookie.indexOf("TheBasket");
                        countbegin = (document.cookie.indexOf("=", index) + 1);
                        countend = document.cookie.indexOf(";", index);
                        if (countend == -1) {
                                countend = document.cookie.length;
                       }
                        document.cookie="TheBasket="+document.cookie.substring(countbegin, countend)+"["+newCategory+"~"+newQuantity+"]";
						if(permit == 'true')
						{
							rc = alert('"Quantity '+newQuantity+'"\n Product: '+newCategory+' (Added to query Basket)');
						}
                }
        }




function basket()
{
window.location.href='basket.htm';
}

function go_to_url(selected_url)

			{	
			var new_url = selected_url.options[selected_url.selectedIndex].value;
				location.href = new_url;
				selected_url.selectedIndex=0;

			}
