if (document.images) {
     print1 = new Image
     print2 = new Image
     print1.src = 'images/print.gif'
     print2.src = 'images/printing.gif'
}

function seewal() {
	window.open('swmap.html','Map','Toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=490,height=472');
}

function seebus() {
	window.open('sbmap.html','Map','Toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=490,height=472');
}

function whatpercent() {
	var t=0;
	var s=document.sone.PropLCategory;
	var d=s.options[s.options.selectedIndex].value;
	var p=document.sone.PropLColour;
	var q=p.options[p.options.selectedIndex].value;

	if(document.sone.PropLFirst.value!="") {
		t+=1;
	}
	if(document.sone.PropLLast.value!="") {
		t+=1;
	}
	if(document.sone.PropLEMail.value!="") {
		t+=1;
	}
	if(d!="") {
		t+=1;
	}
	if(q!="") {
		t+=1;
	}

	if (t==0) {
		document.percentage.src="images/zero.gif";
		document.submitform.src="images/nexg.gif";
	}
	if (t==1) {
		document.percentage.src="images/twen.gif";
		document.submitform.src="images/nexg.gif";
	}
	if (t==2) {
		document.percentage.src="images/fort.gif";
		document.submitform.src="images/nexg.gif";
	}
	if (t==3) {
		document.percentage.src="images/sixt.gif";
		document.submitform.src="images/nexg.gif";
	}
	if (t==4) {
		document.percentage.src="images/eigh.gif";
		document.submitform.src="images/nexg.gif";
	}
	if (t==5) {
		document.percentage.src="images/oneh.gif";
		document.submitform.src="images/nexc.gif";
	}
}

function goform() {
	var a=document.sone.PropLCategory;
	var b=a.options[a.options.selectedIndex].value;
	var y=document.sone.PropLColour;
	var z=y.options[y.options.selectedIndex].value;

	if (document.sone.PropLFirst.value=="" || document.sone.PropLLast.value=="" || document.sone.PropLEMail.value=="" || b=="" || z=="") {
		window.open('prob.html','Error','Toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=200,height=200');
	} else {
		document.sone.submit();
	}
}

function getform() {
	window.parent.location.href = "pdf/dryice.pdf";
	window.open('down.html','Downloading','Toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=160');
}
function WinOpen(URL, windowName, windowWidth, windowHeight) {
	var xposition = 400; 
	var yposition = 300;
	if ((parseInt(navigator.appVersion) >= 4 )) {
		xposition = (screen.width - windowWidth) / 2;
		yposition = (screen.height - windowHeight) / 2;
	}
	var args = "width=" + windowWidth + ","
	+ "height=" + windowHeight + ","
	+ "location=0,"
	+ "menubar=0,"
	+ "status=0,"
	+ "titlebar=0,"
	+ "hotkeys=0,"
	+ "scrollbars=yes,"
	+ "screenx=" + xposition + ","  // NN Only
	+ "screeny=" + yposition + ","  // NN Only
	+ "left=" + xposition + ","     // IE Only
	+ "top=" + yposition;           // IE Only
	windo=window.open(URL, windowName, args);
	if (windo) {
		windo.focus();
	}
}