<!--
// JavaScript Document
// Navigation script for directing user to url (MM)
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
// © Peter Gill & Associates -- www.petergill.com
// B.A September 2003
// Close window
function closeWin() {
	window.close()
	}
// Window pop-up script
function openWin(url,height,width,top,left,scrollbars)
	{	// v1.0
		window.open(url,'','height='+height+',width='+width+',top='+top+',left='+left+',status=yes,toolbar=no,directories=no,menubar=no,location=no,resizable=yes,scrollbars='+scrollbars+'')
	}
function openWinNoResize(url,height,width,top,left,scrollbars)
	{	// v1.0
		window.open(url,'','height='+height+',width='+width+',top='+top+',left='+left+',status=yes,toolbar=no,directories=no,menubar=no,location=no,resizable=no,scrollbars='+scrollbars+'')
	}
	
//-->
function recalcVal() {

	var tempID;
	var tempStreet;
	var tempTown;
	var tempPostcode;
	
	tempID = window.document.form1.intFKEnterpriseCentreID.value;

	tempStreet = (eval("window.document.form1.Street" + tempID + ".value"));
	tempTown = (eval("window.document.form1.Town" + tempID + ".value"));
	tempPostcode = (eval("window.document.form1.Postcode" + tempID + ".value"));
	
	window.document.form1.txtStreetAddress.value = tempStreet;
	window.document.form1.txtTown.value = tempTown;
	window.document.form1.txtPostcode.value = tempPostcode;	
}
