﻿function changebanner() {
	banner = Math.floor(Math.random() * 6);
	if (banner == 1) { document.images.headimage.src = "" };
	if (banner == 2) { document.images.headimage.src = "" };
	if (banner == 3) { document.images.headimage.src = "" };
	if (banner == 4) { document.images.headimage.src = "" };
	if (banner == 5) { document.images.headimage.src = "" };
		
	quote = Math.floor(Math.random() * 11);
	if (quote == 1) { document.images.headnoend.src = "" };
	if (quote == 2) { document.images.headnoend.src = "" };
	if (quote == 3) { document.images.headnoend.src = "" };
	if (quote == 4) { document.images.headnoend.src = "" };
	if (quote == 5) { document.images.headnoend.src = "" };
	if (quote == 6) { document.images.headnoend.src = "" };
	if (quote == 7) { document.images.headnoend.src = "" };
	if (quote == 8) { document.images.headnoend.src = "" };
	if (quote == 9) { document.images.headnoend.src = "" };
	if (quote == 10) { document.images.headnoend.src = "" };	
}



//Lens focal length converter
function getprime() {
var camerabodyprime = "";
var selectedcamera = document.form1.camerabodyprime.value;
var selectedprime = document.form1.primefilm.value;
primeresult = selectedprime * selectedcamera;
document.form1.primedigital.value = primeresult
}

function getzoom() {
var selectedcamera = document.form1.camerabodyzoom.value;
var selectedzoom1 = document.form1.zoomfilm1.value;
var selectedzoom2 = document.form1.zoomfilm2.value;
zoomresult1 = selectedzoom1 * selectedcamera;
zoomresult2 = selectedzoom2 * selectedcamera;
document.form1.zoomdigital1.value = zoomresult1
document.form1.zoomdigital2.value = zoomresult2
}