<!--
function submitform()
{
 if(document.myform.onsubmit())
 {
 document.myform.submit();
 }
}

function session_win() {
  window.open("<?php echo tep_href_link(FILENAME_INFO_SHOPPING_CART); ?>","info_shopping_cart","height=460,width=430,toolbar=no,statusbar=no,scrollbars=yes").focus();
}

	function validateContact() {
	if (document.contact.name.value == "") {
	alert('Please enter your name');
	return false;
	}
	if (document.contact.email_from.value == "") {
	alert('Please enter your Email Address');
	return false;
	}
	if (document.contact.phone.value == "") {
	alert('Please enter your Telephone Number');
	return false;
	}
	
	return true;
	}
	
	function OpenBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function validateFields() {
 if (document.quick_find.keywords.value == "") {
        alert('Please enter a search term');
        return false;
		 }
return true;
}

function new_window(resource,width,height)
	{	resource_window = window.open('http://www.firesafetywarehouse.co.uk/'+resource+'', 'resource_window', 'width=' + ((width*1)+20) + ', height=' + ((height*1)+20) + ', scrollbars=no')
		resource_window.focus()
	}
