// Javascripts
<!--
function showMoreA(wert, wert2)
{
	var formular = document.abfrage;
	if( check(formular.optionNr) )
	{
		formular.abfrageNr.value = wert;
		formular.elemId.value = wert2;
		votingWindow();
		formular.submit();
	}
}
function check( group )
{
   var value = "" ;
   oneChecked = false ;
   for( i = 0; i < group.length; i++ )
   {
      if( group[i].checked )
      {
         oneChecked = true ;
         value = group[i].value ;
         break ;
      }
   }
   if( oneChecked )
   {
	  return true;
   }
   else
   {
	  return false;
   }
}

// Anmeldung Fenster
function windowAnmeldung() 
{
	var anmeldung=window.open("","popup","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=500,height=700");
	anmeldung.focus();
}

function votingWindow()
{
	var votingWindow=window.open("","popup","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=420,height=300");
	votingWindow.focus();
}

function newWindow() 
{
	var newWindow=window.open("","newWindow","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width=500,height=352");
	newWindow.focus();
}
function showBild2(verzeichniss, bild) 
{
	var refWindow = window.open("","referenzen","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,dependent=1, width=600,height=450");
	with(refWindow.document)
	{
	open("text/html");
    writeln('<html><head><title>Tanzvilla - ADTV Tanzschule Richard</title><body bgcolor="#5C4424" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
	writeln('<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="1">');
	writeln('<tr><td align="center" valign="middle">');
	writeln('<table cellspacing="0" cellpadding="5" border="0"><tr><td bgcolor="#FFFFFF">');
	writeln('<img src="pix/'+verzeichniss+'' +bild+ '.jpg" border=0">');
	writeln("</td></tr></table></td></tr></table>");
    writeln("</body></html>");
	close();
	}
	refWindow.focus()
}

//Ticker Statuszeile
var place=1;
function scrollIn()
{
	window.status=message.substring(0, place);
	if (place >= message.length)
	{
		place=1;
		window.setTimeout("scrollOut()",300); 
	}
	else
	{
		place++;
		window.setTimeout("scrollIn()",100); 
   } 
}

function scrollOut()
{
	window.status=message.substring(place, message.length);
	if (place >= message.length)
	{
		place=1;
		window.setTimeout("scrollIn()", 300);
	}
	else
	{
		place++;
		window.setTimeout("scrollOut()", 100);
	}
}

//-->
