


function checkForForm() {

	// check the browser is capable of recognising the DOM objects
	if(!document.getElementsByTagName) return false;
	if(!document.getElementById) return false;

	//create an array of all the <img> tags found in the page.
	//check each one for a title attribute of 'send' - if we find one
	//then the image is treated as a form submit button - and we set the javascript
	//to submit the form when the image is clicked. Use this when we need a rollover
	//state on the image - otherwise use a normal form submit method.
	   
	var links = document.getElementsByTagName("img");

	for(i = 0; i < links.length; i++) {
		

			if(links[i].title == "send"){
				
				alert(links[i].parentNode.parentNode.id)
					
				var reqForm = links[i].parentNode.parentNode.parentNode.id
											
				links[i].parentNode.href = "javascript:document.forms['" + reqForm + "'].submit()"
			}
			
	}
		
	
}


function showProducts() {
	
	
				document.forms['sieveSelection'].submit()
	
}



function orderRecalculate() {
	
	document.getElementById("customerOrder").submit();
}


