function setActionAndSend(wert)
{
	formular.action = wert;
	formular.submit();
}

function keineFunktion()
{
	alert("Keine Funktion!");
}

// setzt default Eintrag in Feld wenn dieses leer ist
function emptyInputValue(name) {
		for (var i = 0; i < this.selectFieldsName.length; i++) {
		if(name == '') {
			if(document.getElementsByName(this.selectFieldsName[i])[0].value == '') {
				document.getElementsByName(this.selectFieldsName[i])[0].value	= this.selectFieldsValue[i];
			} // end: if

		} else {
			if(this.selectFieldsName[i] == name) {
				if(document.getElementsByName(name)[0].value == '') {
					document.getElementsByName(this.selectFieldsName[i])[0].value	= this.selectFieldsValue[i];
				} // end: if
			} // end: if
		} // end: if
	} // end: for
} // end: function emtpyInputValue()

// macht Feld leer wenn Standardinhalt
function emptyField(name) {
	for (var i = 0; i < this.selectFieldsName.length; i++) {
		if(name == this.selectFieldsName[i] && document.getElementsByName(name)[0].value == this.selectFieldsValue[i]) {
			document.getElementsByName(name)[0].value	= '';
		} // end: if
	} // end: for
} // end: function emptyField()

function externalWindow() 
{
var externalWindow=window.open("","externalWindow","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=900,height=630");
externalWindow.focus();
}

function shippingFeeWindow() 
{
var shippingFeeWindow=window.open("","shippingFee","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=520,height=200");
shippingFeeWindow.focus();
}

function privacyStatementWindow() 
{
var privacyStatementWindow=window.open("","privacyStatement","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=900,height=680");
privacyStatementWindow.focus();
}

function mailUseWindow() 
{
var mailUseWindow=window.open("","mailUse","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=520,height=260");
mailUseWindow.focus();
}

function payPalWindow() 
{
var payPalWindow=window.open("","payPal","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=520,height=400");
payPalWindow.focus();
}

// macht Feld leer wenn Standardinhalt
function emptyField(name) {
	for (var i = 0; i < this.selectFieldsName.length; i++) {
		if(name == this.selectFieldsName[i] && document.getElementsByName(name)[0].value == this.selectFieldsValue[i]) {
			document.getElementsByName(name)[0].value	= '';
		} // end: if
	} // end: for
} // end: function emptyField()

// macht ?bergabewert zu %, wenn Inhalt noch default Wert (f?r SQL Statement)
function checkFieldsAtSubmit() {
	for (var i = 0; i < this.selectFieldsName.length; i++) {
		if(document.getElementsByName(this.selectFieldsName[i])[0].value == this.selectFieldsValue[i]) {
			document.getElementsByName(this.selectFieldsName[i])[0].value	= '';
		} // end: if
	} // end: for
} // end: function checkFieldsAtSubmit()

function showAudio() 
{
var audioWindow = window.open("","audio","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,dependent=1,width=150,height=60");
with(audioWindow.document)
{
	open("text/html");
	    writeln('<html><head><title>the-violin-shop</title></head><body bgcolor="#E6E6E6"  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
		writeln('<div align="center">');
		writeln('Play sound file ...');
		writeln("</div>");
	    writeln("</body></html>");
	close();
}
audioWindow.focus()
}

function showProdukt(bild) 
{
var produktWindow = window.open(bild,"produkt","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,dependent=1");
produktWindow.focus()
}
/*
function showProdukt(bild) 
{
var produktWindow = window.open("","produkt","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,dependent=1");
with(produktWindow.document)
{
	open("text/html");
	    writeln('<html><head><title>the-violin-shop</title></head><body bgcolor="#E6E6E6"  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
		writeln('<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"><tr><td align="center" valign="middle">');
		writeln('<img style="border:4px solid #FFFFFF" src="' +bild+ '" border=0>');
		writeln("</td></tr></table>");
	    writeln("</body></html>");
	close();
}
produktWindow.focus()
}
*/


