 function dotnet()
  	{
  	var ag = navigator.userAgent;
  	if (ag.indexOf("IE")!=-1)
  		{
	  	if (ag.indexOf("NET CLR") != -1)
	  		{
	  		if (ag.indexOf("NET CLR 1.0")!= -1) 
	  			{
	  			document.write(".net Framework version 1.0 found.<br/>");
	  			}
	  		if (ag.indexOf("NET CLR 1.1")!= -1) 
		  		{
	  			document.write(".net Framework Version 1.1 found.<br/>");
	  			
	  			}

			if (ag.indexOf("NET CLR 2")!= -1) 
		  		{
	  			document.write(".net Framework Version 2 found.<br/>");
	  			
	  			}
	  		}
	  	else
	  		{
	  		document.write("No .net Framework found<br/>Please install the .net Framework.");
	  		}
		}

	else
	{
	document.write("The automatic detection of the .net framework only works in Internet Explorer.");
	}
}