<!--
function CalculateAllImageWidths(){
	var mainWidth = document.getElementById("content").offsetWidth;
	var browserWidth = window.innerWidth;
	var diff = browserWidth - mainWidth;
	
	
	if(diff>0&&mainWidth>780){
		var gap = diff / 2;
		var page = document.getElementById("outer");
		page.style.width = mainWidth + "px";
		page.style.marginLeft = gap + "px";
		page.style.marginRight = gap + "px";
		//alert(gap);
	}
}

function opendetailwindow() { 
	window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
	}
	

function CalculateOrder(form)
{
	var printSize = form.os0.value;
	//alert(printSize);
	switch (printSize)
	{
	case "7x5":
	  form.amount.value = form.amt.value*1 + 7;
	  break;
	case "10x8":
	  form.amount.value = form.amt.value*1 + 11.00;
	  break;
	case "15x10":
	  form.amount.value = form.amt.value*1 + 14.00;
	  break;
	case "30x20 (canvas)":
	  form.amount.value = form.amt.value*1 + 72.00;
	  break;
	}

	var frameOption = form.amt.value*1;

	switch (frameOption)
	{
	case 0:
	  form.os1.value = "No frame";
	  break;
	case 5:
	  form.os1.value = "Wood frame";
	  break;
	}
	 //return confirm(form.os1.value);
	 
	var postage = form.os3.value;

	switch (postage)
	{
	case "UK":
	  form.amount.value = form.amount.value*1;
	  break;
	case "EU":
	  form.amount.value = form.amount.value*1 + 2.75;
	  break;
	case "EU":
	  form.amount.value = form.amount.value*1 + 4.00;
	  break;
	}
}  

	function right(e) {
	if (navigator.appName == 'Netscape' && (e.which == 2 || e.which == 3)) {
	alert("(c) Copyright Cornwalls.co.uk unless otherwise stated - if you would like to use this image please contact us using the link at the bottom of the page");
	return false;
	}
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button==2 || event.button == 3)) {
	alert("(c) Copyright Cornwalls.co.uk unless otherwise stated - if you would like to use this image please contact us using the link at the bottom of the page");
	return false;
	}
	return true;
	}
	document.onmousedown=right;
	if (document.layers) window.captureEvents(Event.MOUSEDOWN);
	window.onmousedown=right;
	
	if (top != self)
	     top.location=self.document.location;
// -->
