	function openPayment(){

		self.name = 'payopener';
		$('orderFormStep6').submit();
	}


	function submitStep1() {

		var counter = 0;

		for (var i = 0; i < $('orderFormStep1').elements.length; i++) {

			if ($('orderFormStep1').elements[i].checked == 1) {
				counter++;
			}
		}

		if (counter != 0) {
			$('orderFormStep1').submit();
		} else {
			alert('Please select your SparkleFlow version!');
		}
	}

	function submitStep2() {

		var counter = 0;

		for (var i = 0; i < $('orderFormStep2').elements.length; i++) {

			if ($('orderFormStep2').elements[i].checked == 1) {
				counter++;
			}
		}

		if (counter != 0) {
			$('orderFormStep2').submit();
		} else {
			alert('Please select your SparkleFlow Edition!');
		}
	}

	function submitStep3() {
		$('orderFormStep3').submit();
	}

	function submitStep4() {
		$('orderFormStep4').submit();
	}

	function submitStep5(url) {

		if ($('informationCompany').value == '') {
			alert('Please fill out your company name');
			$('informationCompany').focus();
		} else if ($('informationContact').value == '') {
			alert('Please fill out your name');
			$('informationContact').focus();
		} else if ($('informationAddress').value == '') {
			alert('Please fill out your address');
			$('informationAddress').focus();
		} else if ($('informationZipcode').value == '') {
			alert('Please fill out your zipcode');
			$('informationZipcode').focus();
		} else if ($('informationCity').value == '') {
			alert('Please fill out your city');
			$('informationCity').focus();
		} else if ($('informationCountry').value == '') {
			alert('Please choose your country');
			$('informationCountry').focus();
		} else if ($('informationPhone').value == '') {
			alert('Please choose your phone number');
			$('informationPhone').focus();
		} else if ($('informationEmail').value == '' || $('informationEmail').value.indexOf('@') == -1 || $('informationEmail').value.indexOf('.') == -1) {
			alert('Please fill out a valid email address');
			$('informationEmail').focus();
		} else if ($('informationTerms').checked != 1) {
			alert('Please read and agree to our Terms & Conditions');
		} else {

			$('orderFormStep5').action = url;
			$('orderFormStep5').submit();
		}
	}

	function submitTryNowStep1() {

		var counter = 0;

		for (var i = 0; i < $('trynowFormStep1').elements.length; i++) {

			if ($('trynowFormStep1').elements[i].checked == 1) {
				counter++;
			}
		}

		if (counter != 0) {
			$('trynowFormStep1').submit();
		} else {
			alert('Please select your SparkleFlow version!');
		}
	}


	function submitTryNowStep2() {

		if ($('informationCompany').value == '') {
			alert('Please fill out your company name');
			$('informationCompany').focus();
		} else if ($('informationContact').value == '') {
			alert('Please fill out your name');
			$('informationContact').focus();
		} else if ($('informationAddress').value == '') {
			alert('Please fill out your address');
			$('informationAddress').focus();
		} else if ($('informationZipcode').value == '') {
			alert('Please fill out your zipcode');
			$('informationZipcode').focus();
		} else if ($('informationCity').value == '') {
			alert('Please fill out your city');
			$('informationCity').focus();
		} else if ($('informationCountry').value == '') {
			alert('Please choose your country');
			$('informationCountry').focus();
		} else if ($('informationPhone').value == '') {
			alert('Please choose your phone number');
			$('informationPhone').focus();
		} else if ($('informationEmail').value == '' || $('informationEmail').value.indexOf('@') == -1 || $('informationEmail').value.indexOf('.') == -1) {
			alert('Please fill out a valid email address');
			$('informationEmail').focus();
		} else if ($('informationTerms').checked != 1) {
			alert('Please read and agree to our Terms & Conditions');
		} else {
			$('trynowFormStep2').submit();
		}
	}


	function fillField(source){

		if (source == 'company') {
			$('BPE_Customername').value = $('informationCompany').value;
		} else if (source == 'email') {
			$('BPE_Customermail').value = $('informationEmail').value;
		}
	}

	function showEmail(user, domain, tld, title){

		var emailId = user + "\u0040" + domain + "." + tld;
		var url = "mailto:" + emailId;

		if(!title){
			title = emailId;
		}

		document.write("<a href='" + url + "'>" + title + "</a>");
	}