function AddRooms() {
  var ni = document.getElementById('AddRooms');
  var numi = document.getElementById('RoomsValue');
  var num = (document.getElementById('RoomsValue').value -1)+ 2;
  numi.value = num;
  var newdiv = document.createElement('div');
  var divIdName = 'Add'+num+'Rooms';
  newdiv.setAttribute('id',divIdName);
  newdiv.innerHTML = '<label for="room-name'+num+'">Room name</label><input name="room-name'+num+'" id="room-name'+num+'"><br class="clear-both" /><label for="room-dimensions'+num+'">Room Dimensions:</label><textarea class="textarea address" name="room-dimensions'+num+'" id="room-dimensions'+num+'" /></textarea><br class="clear-both" /><label for="room-type'+num+'">Room Type:</label><select name="room-type'+num+'" id="room-type'+num+'"><option>Bedroom</option><option>Living Room</option><option>Kitchen</option><option>Bathroom</option></select><br class="clear-both" /><br />';
  ni.appendChild(newdiv);
}

function AddImages() {
  var ni = document.getElementById('AddImages');
  var numi = document.getElementById('ImagesValue');
  var num = (document.getElementById('ImagesValue').value -1)+ 2;
  numi.value = num;
  var newdiv = document.createElement('div');
  var divIdName = 'Add'+num+'Images';
  newdiv.setAttribute('id',divIdName);
  newdiv.innerHTML = '<br /><label for="image'+num+'">Image:</label><input type="file" name="image'+num+'" id="image'+num+'" /><br class="clear-both" /><label for="imagename'+num+'">Image Name:</label><input type="text" name="imagename'+num+'" id="imagename'+num+'" /><label for="imagedescription'+num+'">Image Description:</label><br class="clear-both" /><textarea name="imagedescription'+num+'" id="imagedescription'+num+'"></textarea><br class="clear-both" /><br />';
  ni.appendChild(newdiv);
}

function fCreateBookmark() 
{
	if ((navigator.appVersion.indexOf("MSIE") > 0)&&(parseInt(navigator.appVersion)>= 4))
  	{	 
  		window.external.AddFavorite("http:/www.parklets.co.uk","Park Lets");
  	}

	else
  	{
  alert('Sorry, your browser does not/nsupport automatic bookmarking./n /n' + 'For Netscape Navigator or Firefox, press Ctrl-D/n(or Command-D on the Mac).');
  location.href = location.href;
  }
}

function ToggleDisplay(ID, Action)
{
	document.getElementById(ID).style.display=Action;
}
