function searchString(object) {
	location.href = jQuery('#SearchUrl').val()+jQuery('#SearchString').val();
	return false;
}

function route1()
{
	window.open('http://www.routenet.nl/asp/address.asp?task=route_address&zipcode=6221BL&street=Wilhelminasingel 98&country=NL&zipcode='+jQuery('#postcode1').val()+jQuery('#postcode2').val()+'&country=NL','_blank');
	return false;
}

function route2()
{
	window.open('http://www.routenet.nl/asp/address.asp?task=route_address&zipcode=2512CV&street=Herderstraat 10&country=NL&zipcode='+jQuery('#postcode1').val()+jQuery('#postcode2').val()+'&country=NL','_blank');
	return false;
}

jQuery(document).ready(function() {
	jQuery('#SearchButton').click(function() {
		return searchString(this);
	});
	
	jQuery('#SearchString').keypress(function(e) {
		if(e.keyCode == 13) {
			return searchString(this);
		}
	});
});

var submitForm = function (type)
{
	jQuery('#PublicationOrderType').val(type);
	jQuery('form').submit();
}
var submitFormEbook = function (type)
{
	jQuery('#EbookOrderType').val(type);
	jQuery('form').submit();
}
