function CheckIfSavedSectorGrid()
{
	if ((typeof(clientInformation) != "undefined") && (clientInformation.appName.indexOf("Explorer") != -1)) 
	{
		//alert('IE');
		var inputControls = document.all.tags("INPUT");
	}
	else
	{
		//alert('Not IE');
		// get a list of all the body elements (there will only be one)
        var myDocumentElements=document.getElementsByTagName("body");
        // the body element itself is the first item of the list
        var myBody=myDocumentElements.item(0);
        // now, get all the p elements that are children of the body
        var inputControls=myBody.getElementsByTagName("INPUT");
	}
	
	if (inputControls!=null)
	{
		for (i=0; i < inputControls.length; i++) 
		{
			if (inputControls[i].type == "text")
			{
				//alert('type = ' + inputControls[i].type + 'value = ' + inputControls[i].value);
				if (inputControls[i].value.length > 0)
				{
					var postForm = confirm("The details you have entered will not be saved. To save click Cancel and then click Save. To continue click OK.");
					if (!postForm)
					{
						if ((typeof(clientInformation) != "undefined") && (clientInformation.appName.indexOf("Explorer") != -1)) 
						{
							Page_BlockSubmit = true;
							Page_IsValid = false;
							return(false);	
						}
						else
						{
							//var theform = document.forms["DisplayForm"];
							//theform.onsubmit = "return(false)";
							return(false);
						}
					}				
				}
			}
		}
	}
	
	return(true);
}

