Lots of big and small changes in this commit:
Changed printscrollablearea.php to use a for loop as originally instead of a while loop. Tested with the server having <10 locations, seemed to work.
Fixed the bug where multiple hotspots would show in the list with the same number beside them if they had exactly the same position.
Made hotspots on the map and in the list be numbered from 1 to 10, not 0 to 9, just to be more normal for the user, no real advantage.
Improved the code for the username and password fields in the login and registration form. They should say what they are in the text box. which will disappear when you type in them. Also, all fields should be required to not be blank. Removed the clunky javascript that was doing this and replaced it with the 'placeholder="Address / Postcode" required="true"' parts of the input tags. This was already used for the address text box on the home page.
Also added commenting! It's not pretty, but it's functional. Need advice on how to make it look nice.
Renamed headjs.js to headjs.php to allow using PHP to modify the javascript used.
I have also changed the login and register form code so that they now work with javascript like the login form did orginally, instead of refreshing the page when you click to display either form. The newer way was nicer to read, but it meant the page refreshed unneccessarily which was quite a big delay if you did it on the page showing the map.
Changed the index page to use GET for submitting the address of the user, rather than POST. This could lead to problems where what they submit is not allowed in a URL, this should be decided if it is possible and checked for.
Removed the two files that were the HTML for the login form and registration form (loginformhtml.php and registerformhtml.php). They are no longer needed now it is javascript driven.