function p_setheight(obj) {
	if(document.documentElement!=null){
	    m_visibleheight=pixel(document.documentElement.clientHeight);
  	}else{
	    m_visibleheight=pixel(window.innerHeight);
  	}

	m_visibleheight=m_visibleheight-obj.getAttribute('resize-y');

	obj.style['height']=m_visibleheight+'px';
}

function p_setwidth(obj) {
	if(document.documentElement!=null){
	    m_visiblewidth=pixel(document.documentElement.clientWidth);
   	}else{
	    m_visiblewidth=pixel(window.innerWidth);
  	}

	m_visiblewidth=m_visiblewidth-obj.getAttribute('resize-x');

	obj.style['width']=m_visiblewidth+'px';

}

function p_setsize(obj){
	if (obj.getAttribute('resize-y')!=null) {
		p_setheight(obj);
	}
	if (obj.getAttribute('resize-x')!=null) {
		p_setwidth(obj);
	}

}

