
function setLocation(newLoc){
	window.location=newLoc;
}

function writeFlash(swf,img,w,h,alt){
	 if(navigator.plugins && navigator.plugins.length>0 && navigator.plugins["Shockwave Flash"]){
		 document.write('<EMBED src="'+swf+ '" quality=high bgcolor=#FFFFFF  WIDTh='+w+ ' hEIGhT='+h+ ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>');
	}else{
		document.write('<img  src="'+img+ '" bgcolor="#FFFFFF" alt="'+alt+ '"  WIDTh="'+w+'" hEIGhT="'+h+'" >');
	}
}

function only4tag(sTag)
{
	if(navigator.appVersion.substring(0,1)=="4")
	document.write(sTag);
}

function no4tag(sTag)
{
	if(navigator.appVersion.substring(0,1)!="4")
	document.write(sTag);
}

function placeMe(who)
{
	var SH=screen.height ;
	var SW=screen.width ;

	who.moveTo(SW/8,SH/8);
	who.resizeTo(Math.floor(SW*0.75),Math.floor(SH*0.75));
	who.focus();}

function openWin(win,pic,w,h,sc)
{
	L=screen.width/3;
	T=screen.height/3;
	if(sc==1){
		scb=", scrollbars=no" ;
	}else{
		scb=", scrollbars=yes, resizable=yes";
	}
	F = window.open(pic,win,"width=" + w +" , height="+h+", innerWidth=" + w+ " , innerHeight="+h +", left=" + L+ ", top="+T+ scb);
	F.focus();
}

function showDiv(divId) {
    if ( divId != null ) {
        document.getElementById(divId).style.visibility = "visible";
    }
	return false;
}

function hideDiv(divId) {
    if ( divId != null ) {
	document.getElementById(divId).style.visibility = "hidden";
    }
	return false;
}

function chkFormular(){
	if (document.forms[0].txFirma.value == "") {
		alert("Bitte den Firmennamen eingeben!");
		document.forms[0].txFirma.focus();
		return false;
	}
	if (document.forms[0].txTelefon.value == "") {
		alert("Bitte Ihre Telefonnummer eingeben!");
		document.forms[0].txTelefon.focus();
		return false;
	}
		if (document.forms[0].txEmail.value == "") {
		alert("Bitte Ihre E-Mail eingeben!");
		document.forms[0].txEmail.focus();
		return false;
	}
	
	//return true;
}
