function changeColor(color) {
	var img = new Image;
	img.src = '/include/css.php?css='+color;
	setTimeout("window.location.reload();",  1000);	
}

function setGoodWidth() {

var height, width;

   var fholder = document.getElementById('holder');

   var ffooter = document.getElementById('footer');

   if (fholder.clientHeight > 700)
     return false;

  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

   var maxheight = myHeight - ffooter.clientHeight + 0;

   if (maxheight > 200 )
     fholder.style.height = maxheight+'px';

        return true;
}

if (window.addEventListener)
        window.addEventListener("load", setGoodWidth, false);
else if (window.attachEvent)
        window.attachEvent("onload", setGoodWidth);
		
if (window.addEventListener)
        window.addEventListener("resize", setGoodWidth, false);
else if (window.attachEvent)
        window.attachEvent("onresize", setGoodWidth);


