function f_addClass (elementID, addThisClass) {
	var element = document.getElementById(elementID);
	
	element.setAttribute('class', addThisClass);
	element.setAttribute('className', addThisClass); //For IE
	//return 'done!';
}	

(function(){ // Import GET Vars
   document.$_GET = [];
   var foo= String(document.location);
   foo=decodeURIComponent(foo.replace(/\+/g, " "))
   var urlHalves = foo.split('?');
   if(urlHalves[1]){
      var urlVars = urlHalves[1].split('&');
      for(var i=0; i<=(urlVars.length); i++){
         if(urlVars[i]){
            var urlVarPair = urlVars[i].split('=');
            document.$_GET[urlVarPair[0]] = urlVarPair[1];
         }
      }
   }
})();


/*CREDIT - http://th.atguy.com [Guy Malachi] ----------------------------------- */

function calcHeight()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('the_iframe').contentWindow.
      document.body.scrollHeight;

	alert(string(the_height));
	
  //change the height of the iframe
  document.getElementById('the_iframe').height=
      the_height;
}
/*--------------------------------------------------------------------------------*/


/*CREDIT - http://www.appnitro.com/forums/topic/auto-expandadjustable-iframe ----------------------------------- */
function calcHeight()
{
//find the height of the internal page
var the_height=
document.getElementById('the_iframe').contentWindow.
document.body.scrollHeight;

//change the height of the iframe
document.getElementById('the_iframe').height=
the_height;
}

/*--------------------------------------------------------------------------------*/


