
function MMRoutingInfoWindow(){	

}
MMRoutingInfoWindow.prototype = new MMToolWindow(false, 450,250, true);


/**
 * displays the Window with current route properties
 */
MMRoutingInfoWindow.prototype.show = function(directionObject){
	
	this.clearContent();
	
	var comma = false;
	var routeIds = "";
	for(var i=0; i<directionObject.CountRoutes(); i++)
	{
		if(comma) routeIds += ",";
		else comma = true;
		routeIds += directionObject.GetRoute(i).getId();
	}	

	$("RoutingInfoWindow").src = "";

	$("RoutingInfoWindow").src = MMRegistry.urlPortal +"commands.php?cmd=showRoutingInfo&responseIds="+ routeIds;

	this.showWindow();
}


MMRoutingInfoWindow.prototype.initializeContent = function(content){
	content.innerHTML = '<iframe id="RoutingInfoWindow" width="100%" height="95%" frameborder="0" src="" scrolling="no"></iframe>';
}

MMRoutingInfoWindow.prototype.initializeButtons = function(buttons){

}

MMRoutingInfoWindow.prototype.onSubmitMetaButton = function(){	

}

