﻿function GotoSearchCity2() { 
	
	var zipCodeText2, province2;
	
	for (j=0;j<document.forms.length;j++)
	{
		for(i=0;i<document.forms[j].elements.length;i++)
		{
			var control=document.forms[j].elements[i];
			if (control.name.length >= 8)
			{
				if (control.name.substr(control.name.length - 8)=='pastcade')
					zipCodeText2 = control.value;
				else if (control.name.substr(control.name.length - 8)=='Province')
				{
					province2 = control.value;
				}
			}
		}
	}
	if (zipCodeText2 != '')
	{
		location.href = '/Regio/Gemeente/' + zipCodeText2; 
		return;
	}

}