$(document).ready(function() {
	// EDIT THIS LIST
	var pagesOnWhichToCenterTheSubmitButton = [
		"/bl/contacteer-ons.aspx",
		"/de/contact-us.aspx",
		"/de/kontakt.aspx",
		"/es/contact-us.aspx",
		"/fr/service-support/warranty/global-warranty/global-warranty-program-registration.aspx",
		"/fr/service-et-support/formulaire-de-demande-rma-en-ligne.aspx",
		"/il/contact-us.aspx",
		"/nl/contacteer-ons.aspx",
		"/pl/service-support/online-rma-request-form.aspx",
		"/pl/service-support/warranty/global-warranty/global-warranty-program-registration.aspx",
		"/uk/service-support/online-rma-request-form.aspx",
		"/uk/service-support/warranty/global-warranty/global-warranty-program-registration.aspx"
	];
	
	// LEAVE ALONE, PROBABLY
	if (jQuery.inArray(location.pathname, pagesOnWhichToCenterTheSubmitButton) > -1) {
		// Enwrap form buttons
		$("#formDetails input[type='submit']").each(function() {
			// Create a temporary div
			var div = document.createElement("div");
			$(div).addClass("submitWrap").css({
				textAlign: "center"
			});
			
			// Insert the div right before the input
			this.parentNode.insertBefore(div, this);
			
			// Remove the input
			this.parentNode.removeChild(this);
			
			// Add the input to the div
			div.appendChild(this);
		});
	}
});

