
var anzahl;
anzahl=1;


bild1=new Image ();
bild1.src="http://www.freizeitpark-guide.de/images/votestern_aus.gif";
bild1_on=new Image ();
bild1_on.src="http://www.freizeitpark-guide.de/images/votestern_an.gif";


function wechsel1()
{
  window.document.images[anzahl+0].src=bild1_on.src;
  window.document.images[anzahl+1].src=bild1.src;
  window.document.images[anzahl+2].src=bild1.src;
  window.document.images[anzahl+3].src=bild1.src;
  window.document.images[anzahl+4].src=bild1.src;
}
function wechsel2 ()
{
 starcheck();
}

function wechsel3 ()
{
  window.document.images[anzahl+0].src=bild1_on.src;
  window.document.images[anzahl+1].src=bild1_on.src;
  window.document.images[anzahl+2].src=bild1.src;
  window.document.images[anzahl+3].src=bild1.src;
  window.document.images[anzahl+4].src=bild1.src;
}
function wechsel4 ()
{
 starcheck();
}
function wechsel5 ()
{
  window.document.images[anzahl+0].src=bild1_on.src;
  window.document.images[anzahl+1].src=bild1_on.src;
  window.document.images[anzahl+2].src=bild1_on.src;
  window.document.images[anzahl+3].src=bild1.src;
  window.document.images[anzahl+4].src=bild1.src;
}
function wechsel6 ()
{
 starcheck();
}
function wechsel7 ()
{
  window.document.images[anzahl+0].src=bild1_on.src;
  window.document.images[anzahl+1].src=bild1_on.src;
  window.document.images[anzahl+2].src=bild1_on.src;
  window.document.images[anzahl+3].src=bild1_on.src;
  window.document.images[anzahl+4].src=bild1.src;
}
function wechsel8 ()
{
 starcheck();
}

function wechsel9 ()
{
 window.document.images[anzahl+0].src=bild1_on.src;
 window.document.images[anzahl+1].src=bild1_on.src;
 window.document.images[anzahl+2].src=bild1_on.src;
 window.document.images[anzahl+3].src=bild1_on.src;
 window.document.images[anzahl+4].src=bild1_on.src;
}
function wechsel10 ()
{
 starcheck();
}



 

function starcheck()
{

 if (window.document.abstimmen.note.value == 0)
 {
  window.document.images[anzahl+0].src=bild1.src;
  window.document.images[anzahl+1].src=bild1.src;
  window.document.images[anzahl+2].src=bild1.src;
  window.document.images[anzahl+3].src=bild1.src;
  window.document.images[anzahl+4].src=bild1.src;
 }
 else if (window.document.abstimmen.note.value == 1)
 {
  window.document.images[anzahl+0].src=bild1_on.src;
  window.document.images[anzahl+1].src=bild1.src;
  window.document.images[anzahl+2].src=bild1.src;
  window.document.images[anzahl+3].src=bild1.src;
  window.document.images[anzahl+4].src=bild1.src;
 }
 else if (window.document.abstimmen.note.value == 2)
 {
  window.document.images[anzahl+0].src=bild1_on.src;
  window.document.images[anzahl+1].src=bild1_on.src;
  window.document.images[anzahl+2].src=bild1.src;
  window.document.images[anzahl+3].src=bild1.src;
  window.document.images[anzahl+4].src=bild1.src;
 }
 else if (window.document.abstimmen.note.value == 3)
 {
  window.document.images[anzahl+0].src=bild1_on.src;
  window.document.images[anzahl+1].src=bild1_on.src;
  window.document.images[anzahl+2].src=bild1_on.src;
  window.document.images[anzahl+3].src=bild1.src;
  window.document.images[anzahl+4].src=bild1.src;
 }
 else if (window.document.abstimmen.note.value == 4)
 {
  window.document.images[anzahl+0].src=bild1_on.src;
  window.document.images[anzahl+1].src=bild1_on.src;
  window.document.images[anzahl+2].src=bild1_on.src;
  window.document.images[anzahl+3].src=bild1_on.src;
  window.document.images[anzahl+4].src=bild1.src;
 }
 else if (window.document.abstimmen.note.value == 5)
 {
  window.document.images[anzahl+0].src=bild1_on.src;
  window.document.images[anzahl+1].src=bild1_on.src;
  window.document.images[anzahl+2].src=bild1_on.src;
  window.document.images[anzahl+3].src=bild1_on.src;
  window.document.images[anzahl+4].src=bild1_on.src;
 }


}



function updateVote(the_vote_chosen) 
{
    window.document.abstimmen.note.value = the_vote_chosen;
}
