	function GetHeight()
{
     var y = 0;
        if (self.innerHeight)
        {
                y = self.innerHeight;
        }
        else if (document.documentElement && document.documentElement.clientHeight)
        {
                y = document.documentElement.clientHeight;
     }
        else if (document.body)
        {
                y = document.body.clientHeight;
      }
    return y;
}
	function GetW()
{
     var y = 0;
         if (document.body)
       {
                y = document.body.clientWidth;
      }
    return y;
}

function setheight(id,val){
	if(document.getElementById(id)!=null){
		document.getElementById(id).style.height=GetHeight()-val+'px';
	}
}
function setwidth(id,val){
	if(document.getElementById(id)!=null){
		document.getElementById(id).style.width=GetW()-val+'px';
	}
}

/*function changeHeight(id)
{
	if(document.getElementById(id)!=null){
		document.getElementById(id).style.height=GetHeight()-document.getElementById(id).className+'px';
		alert(document.getElementById(id).style.height);
	}	
}*/
onload=function(){
setheight('Master',100);
setwidth('ShocaseTitle',50);
setwidth('Boxhead',76);
}
onresize=function(){
setheight('Master',100);
setwidth('ShocaseTitle',50);
setwidth('Boxhead',76);
}
