// define the namespace if necessary
if ( Quadis == undefined )
	var Quadis = { };

Quadis.SupportRequest = { 
	// static methods in this namespace
	
	resizeAllFrames: function() {
		Quadis.SupportRequest.resizeFrame( 'ctlFormFrame' );
	},
	
	resizeFrame: function(frameId) {
		frameControl = document.getElementById(frameId);
		var height = parseInt(frameControl.contentWindow.document.body.scrollHeight);
		height += 20;
		frameControl.style.height = height + "px";
	},
	
	redirectTo: function(url) {
		window.location = url;
	}
}

YAHOO.util.Event.onDOMReady( Quadis.SupportRequest.resizeAllFrames );



