function changeTemplateLink(sCurrentPaymentType, mode, sConcardisURL, bNoSubmit, country)
{
	// das AjaxLoader Popup soll nur geladen werden, wenn ein Radio Button ausgewaehlt wurde
	if (mode == 'send')
	{
		var _mk = document.getElementById('masklayer');
		if(_mk)
		{
			$('#masklayer').addClass('on');
		}

		var _pw = document.getElementById('pleasewaitlayer');

		if(_pw)
		{
			$('#pleasewaitlayer').addClass('on');
		}
	}

	// Inputs 'gutscheincode', 'angaben' und 'zahlungsart' dem Template-Link
	// uebermitteln.
	if (document.forms.order.gutscheincode.value)
	{
		document.forms.order.TP.value += '&gutscheincode=' + document.forms.order.gutscheincode.value;
	} // if

	if (document.forms.order.angaben.value)
	{
		document.forms.order.TP.value += '&angaben=' + document.forms.order.angaben.value;
	} // if

	if (bNoSubmit == "nosubmit")
	{
		document.forms.order.dontSubmitToConcardis.value = "true";
	}

	// zahlungsart
	for (iCurIndex = 0; iCurIndex < document.forms.order.zahlungsart.length; iCurIndex++)
	{
		// In Deutschland werden mehr Zahlungsmoeglichkeiten als in Oesterreich angezeigt
		if (country == 'D')
		{
			if (document.forms.order.zahlungsart[0].checked == true
					&& sCurrentPaymentType != 'vorkasse')
			{
				document.forms.order.action='bestell2.htm?payment=pp';
			}

			if (document.forms.order.zahlungsart[1].checked == true
					&& sCurrentPaymentType != 'nachnahme')
			{
				document.forms.order.action='bestell2.htm?payment=cod';
			}

			if (document.forms.order.zahlungsart[2].checked == true)
			{
				document.forms.order.action=sConcardisURL;
				document.forms.order.PM.value='CreditCard';
				document.forms.order.BRAND.value='VISA';

				if (sCurrentPaymentType != 'kreditkarte_VISA' || document.forms.order.dontSubmitToConcardis.value == 'true')
				{
					document.forms.order.action='bestell2.htm?payment=cc';
				}
				else
				{
					document.forms.order.action=sConcardisURL;
				}
			}

			if (document.forms.order.zahlungsart[3].checked == true)
			{
				document.forms.order.action=sConcardisURL;
				document.forms.order.PM.value='CreditCard';
				document.forms.order.BRAND.value='MasterCard';

				if (sCurrentPaymentType != 'kreditkarte_MasterCard' || document.forms.order.dontSubmitToConcardis.value == 'true')
				{
					document.forms.order.action='bestell2.htm?payment=cc';
				}
				else
				{
					document.forms.order.action=sConcardisURL;
				}
			}

			if (document.forms.order.zahlungsart[4].checked == true)
			{
				document.forms.order.action=sConcardisURL;
				document.forms.order.PM.value='CreditCard';
				document.forms.order.BRAND.value='American Express';

				if (sCurrentPaymentType != 'kreditkarte_American Express' || document.forms.order.dontSubmitToConcardis.value == 'true')
				{
					document.forms.order.action='bestell2.htm?payment=cc';
				}
				else
				{
					document.forms.order.action=sConcardisURL;
				}
			}

			if (document.forms.order.zahlungsart[5] && document.forms.order.zahlungsart[5].checked == true
					&& sCurrentPaymentType != 'rechnung')
			{
				document.forms.order.action='bestell2.htm?payment=bill';
			}
		}
		else if (country == 'A')
		{
			if (document.forms.order.zahlungsart[0].checked == true
				&& sCurrentPaymentType != 'vorkasse')
			{
				document.forms.order.action='bestell2.htm?payment=pp';
			}

			if (document.forms.order.zahlungsart[1].checked == true)
			{
				document.forms.order.action=sConcardisURL;
				document.forms.order.PM.value='CreditCard';
				document.forms.order.BRAND.value='VISA';

				if (sCurrentPaymentType != 'kreditkarte_VISA' || document.forms.order.dontSubmitToConcardis.value == 'true')
				{
					document.forms.order.action='bestell2.htm?payment=cc';
				}
				else
				{
					document.forms.order.action=sConcardisURL;
				}
			}

			if (document.forms.order.zahlungsart[2].checked == true)
			{
				document.forms.order.action=sConcardisURL;
				document.forms.order.PM.value='CreditCard';
				document.forms.order.BRAND.value='MasterCard';

				if (sCurrentPaymentType != 'kreditkarte_MasterCard' || document.forms.order.dontSubmitToConcardis.value == 'true')
				{
					document.forms.order.action='bestell2.htm?payment=cc';
				}
				else
				{
					document.forms.order.action=sConcardisURL;
				}
			}

			if (document.forms.order.zahlungsart[3].checked == true)
			{
				document.forms.order.action=sConcardisURL;
				document.forms.order.PM.value='CreditCard';
				document.forms.order.BRAND.value='American Express';

				if (sCurrentPaymentType != 'kreditkarte_American Express' || document.forms.order.dontSubmitToConcardis.value == 'true')
				{
					document.forms.order.action='bestell2.htm?payment=cc';
				}
				else
				{
					document.forms.order.action=sConcardisURL;
				}
			}
		}

		if (document.forms.order.zahlungsart[iCurIndex].checked == true)
		{
			document.forms.order.TP.value += '&zahlungsart=' + document.forms.order.zahlungsart[iCurIndex].value;
		} // if
	} // for

	if (mode == 'send')
	{
		document.forms.order.submit();
	}

} // function

