function starsChose($num)
	{
		document.form1.stars.value = $num;
	}

function mouseColor ($id)
	{
		if ($id>=1) document.getElementById('star1').src = 'img/star_big.gif'
			else document.getElementById('star1').src = 'img/star_grey.gif';
		if ($id>=2) document.getElementById('star2').src = 'img/star_big.gif'
			else document.getElementById('star2').src = 'img/star_grey.gif';
		if ($id>=3) document.getElementById('star3').src = 'img/star_big.gif'
			else document.getElementById('star3').src = 'img/star_grey.gif';
		if ($id>=4) document.getElementById('star4').src = 'img/star_big.gif'
			else document.getElementById('star4').src = 'img/star_grey.gif';
		if ($id>=5) document.getElementById('star5').src = 'img/star_big.gif'
			else document.getElementById('star5').src = 'img/star_grey.gif';
	}
function clearStars()
	{
		$id = document.form1.stars.value;
		if ($id>=1) document.getElementById('star1').src = 'img/star_big.gif'
			else document.getElementById('star1').src = 'img/star_grey.gif';
		if ($id>=2) document.getElementById('star2').src = 'img/star_big.gif'
			else document.getElementById('star2').src = 'img/star_grey.gif';
		if ($id>=3) document.getElementById('star3').src = 'img/star_big.gif'
			else document.getElementById('star3').src = 'img/star_grey.gif';
		if ($id>=4) document.getElementById('star4').src = 'img/star_big.gif'
			else document.getElementById('star4').src = 'img/star_grey.gif';
		if ($id>=5) document.getElementById('star5').src = 'img/star_big.gif'
			else document.getElementById('star5').src = 'img/star_grey.gif';
		
	}

function screenSize() {
      var w, h; // Объявляем переменные, w - длина, h - высота
      w = (window.innerWidth ? window.innerWidth : (document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.offsetWidth));
      h = (window.innerHeight ? window.innerHeight : (document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.offsetHeight));
      return {w:w, h:h};
}
function footerPlace()
	{
		$x = screenSize().h;
		$y = document.body.scrollHeight;
		$z = $x-$y+30;
		document.body.style.visibility = 'visible';
		if (($x-$y)>125)
			{
			 document.getElementById('footer').style.marginTop = $z+'px';
			}
	}
