// JavaScipt for games.body-snatcher.de // Designed by BODY-SNATCHER // Homepage: www.body-snatcher.de function castVote(value, param) { var location = "http://games.body-snatcher.de/content/add_rating.php?rating=" + value + "&id=" + param; document.getElementById("voteframe").src=location; castVote=function (){alert("Du kannst nur einmal voten!");}; returnState=function (){}; setState=function (){}; } function setState(numOfStars,value) { var counter = 1; do { var theStar = document.getElementById("star" + counter); theStar.src = "http://games.body-snatcher.de/content/images/fullstar.png"; counter++; } while (counter <= numOfStars) } function returnState(numToReturn) { var counter = 1; do { var theStar = document.getElementById("star" + counter); theStar.src = "http://games.body-snatcher.de/content/images/emptystar.png"; counter++; } while (counter <= numToReturn) } function popup(url,w,h) { w = (w / h) * (screen.availHeight - 100); // 150px*150px is the default size h = screen.availHeight - 100; left = (screen.availWidth - w) / 2; topPos = (screen.availHeight - h) / 2; var args = 'width='+w+',height='+h+',resizable'; args += ', left=' + left; args += ', top=' + topPos; window.open(url,'',args); }