function removeMap(id) { obj = document.getElementById(id); parentObj = obj.parentNode; parentObj.removeChild(obj); if(document.getElementsByName('gmpObj').length < 1) { parentObj.innerHTML = ''+ '
' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + '
' + ' Name ' + ' : ' + ' ' + '
' + ' Description ' + ' : ' + ' ' + '
' + ' Address ' + ' : ' + ' ' + '
' + ' Width ' + ' : ' + ' ' + '
' + ' Height ' + ' : ' + ' ' + '
' + ' Zoom ' + ' : ' + ' ' + '
' + ' Has Street View Control ' + ' : ' + ' ' + '
' + '
'+ ' '+ ' '+ '
'+ '
'; } } function addNewMap() { objs = document.getElementsByName('gmpObj'); obj = objs[objs.length - 1]; parentObj = obj.parentNode; newObj = document.createElement('div'); newObj.name = 'gmpObj' newItemID = Math.floor(Math.random()*1000) while(document.getElementById('gmp_marker_' + newItemID)) { newItemID = Math.floor(Math.random()*1000); } newObj.id = 'gmpObj_' + newItemID; newObj.setAttribute('name', 'gmpObj'); parentObj.insertBefore(newObj, obj.nextSibling); newObj.innerHTML = ''+ ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + '
' + ' Name ' + ' : ' + ' ' + '
' + ' Description ' + ' : ' + ' ' + '
' + ' Address ' + ' : ' + ' ' + '
' + ' Width ' + ' : ' + ' ' + '
' + ' Height ' + ' : ' + ' ' + '
' + ' Zoom ' + ' : ' + ' ' + '
' + ' Has Street View Control ' + ' : ' + ' ' + '
' + '
'+ ' '+ ' '+ '
'; }