//
// because the info path is treated like an actual path, setting form's action 
// to ASPX file name will mess up the path. This is easily fixed.
//
// Update the form action only when there's an actual .ASPX page in the location,
// otherwise posting back to a path will give a 405 HTTP error.
//
// Changed on Feb. 13 by Ricardo Covo
// NOTES: 
// - This script affects all the pages. It changes the action of the page so 
//   it doesn't change our querystring (that we separate with "/").

if(window.location.toString().toLowerCase().indexOf('.aspx') >= 0)
{
	if (document.forms[0] != null)
		document.forms[0].action = window.location;
}
