http://www.makeuseof.com/dir/psd2css/
http://www.devwebpro.com/creating-css-layouts-the-best-tutorials-on-converting-psd-to-xhtml/
document.createElement was working in all browsers other than FF.I changed this part
1: var newElement = document.createElement("<input name='"+elementName+"' id='" + elementName + "' type='hidden'>");
1: var newElement = document.createElement("input");
2: newElement.setAttribute('name',elementName);
3: newElement.setAttribute('id',elementName);
4: newElement.setAttribute('type','hidden');
http://www.dustindiaz.com/add-and-remove-html-elements-dynamically-with-javascript/
http://www.eggheadcafe.com/community/aspnet/3/41127/firefox-createelement--a.aspx
I know of some ways to do the above but this was really one of the simplest ways to do it.
http://usmanshabbir.blogspot.com/2009/10/simplest-way-to-call-server-side.html