function tbWriteEml(s1, s2, sCaption){
	document.write("<a href='m" + "ailt" + "o:" + s1 + "&" + "#" + "6" + "4" + ";" + s2+ "'>")
	if (sCaption == '')
		document.write(s1 + "&" + "#" + "6" + "4" + ";" + s2);
	else
		document.write(sCaption);
	document.write("</a>");}

function SendForm(frm){
	var obj = frm
	if (CheckFieldsfromDB(obj))
		obj.submit();}
		
function writeInner(sLayer, sInhalt){
	if (sLayer+"" != ""){
		if (document.getElementById) {
			document.getElementById(sLayer).innerHTML = sInhalt;
		} else { //für safaribrowser
			 document.layers[sLayer].document.open();
			 document.layers[sLayer].document.write(sInhalt);
			 document.layers[sLayer].document.close();
		}
	}
}

function setOpacity(sLayer, iWertIE, iWertOther){
	if (sLayer+"" != ""){
		document.getElementById(sLayer).style.filter = "alpha(opacity="+ iWertIE +")";
		document.getElementById(sLayer).style.MozOpacity = iWertOther;
		document.getElementById(sLayer).style.opacity = iWertOther;
	}	
}

function urlencode (str) {
 var code = "";
 for (var i = 0; i < str.length; i++) {
  if (str.charAt(i) == " ") {
   code += "+";
  } else if (str.charAt(i) == "+") {
   code += "%2B";
  } else if (str.charCodeAt(i) > 127) {
   code += encodeURI(str.charAt(i));
  } else {
   code += escape(str.charAt(i));
  }
 }
 return code;
}

function changeLoc(sLoc){
	if (sLoc + '' != '')
		window.location.href = sLoc;	
}
