function ExtendActions(){
	/*
     var elem = document.getElementById("footer_text_id");
     if(elem){
       elem.style.bottom = "88px";
     }
     
     elem = document.getElementById("copyright_id");
     if(elem){
       elem.style.bottom = "30px";
     }*/
   }


function PageExtender(used_height){
    var elemet_id = "page_extender";
	var elem = null;
	if(elem = document.getElementById(elemet_id)){
	  //alert('Your resolution is '+screen.width+'x'+screen.height); 
	  
	  	var w, h;
		if (self.innerHeight) // all except Explorer
		{
			w = self.innerWidth;
			h = self.innerHeight;
		}
		else if (document.documentElement && document.documentElement.clientHeight)
			// Explorer 6 Strict Mode
		{
			w = document.documentElement.clientWidth;
			h = document.documentElement.clientHeight;
		}
		else if (document.body) // other Explorers
		{
			w = document.body.clientWidth;
			h = document.body.clientHeight;
		}
	  //alert("W: "+ w + " H: " + h);
	  var diff = h - used_height;
	  //alert(diff);
	  if(diff < 0) diff = 0;
	  elem.style.height = diff +"px";
	  ExtendActions();
	}
   }

   
   function goToAnchor(anchor_val){
	
	if(anchor_val){
		window.location.href=window.location.href+anchor_val;
	}
}


function ScrollToElement(elem_id){
	var elem = document.getElementById(elem_id);
	if(elem){
		elem.scrollIntoView();
	}
}


