function getWinHeight(p) {
	var height=0;
  if (p == 0)
    p = 100;
	if (window.innerHeight)
		height = window.innerHeight;
  else if (document.body.offsetHeight)
    height = document.body.offsetHeight;
	else if (document.body.clientHeight)
		height = document.body.clientHeight;
  if (height==0)
    return p + "%";
  else
    return height * p / 100;
}


