
function createDOMForm(targetId, actionURL)
{
	
	
 	// Where the form will be placed into the page
 	parentElement = document.getElementById(targetId)
 	parentElement.innerHTML = ""
 	
	// Create a form
 	myForm = document.createElement('FORM')
 	myForm.method = 'post'
 	myForm.action = actionURL
 	myForm.setAttribute('Name', 'myForm')
 	myForm.id = 'myForm'
	
	//create label
	
	
	myForm.appendChild(document.createTextNode('*'))
 	
 /*	
 	// Create a text field
 	textField = document.createElement('INPUT')
 	textField.type = 'text'
	textField.setAttribute('value', 'text field')
 	textField.setAttribute('Name', 'myTextField')
 	textField.style.display = 'block'
 	myForm.appendChild(textField)
 	
 */
 	// Place the form into the page
 	parentElement.appendChild(myForm)
 	
 	// Bit o IE bug fixin'
 	if(navigator.appVersion.indexOf("MSIE") != -1) 
	{

    // Fixes the name issue, event handling, and rendering bugs!
 		 parentElement.innerHTML = parentElement.innerHTML

	}
 	
}


//*********************************

function destroyDOMForm(targetId, actionURL)
{
	
	
 	// Where the form will be placed into the page
 	parentElement = document.getElementById(targetId)
 	parentElement.innerHTML = ""
 	
	// Create a form
 	myForm = document.createElement('FORM')
 	myForm.method = 'post'
 	myForm.action = actionURL
 	myForm.setAttribute('Name', 'myForm')
 	myForm.id = 'myForm'
	
	//create label
	
	
	//myForm.appendChild(document.createTextNode('*'))
 	
 /*	
 	// Create a text field
 	textField = document.createElement('INPUT')
 	textField.type = 'text'
	textField.setAttribute('value', 'text field')
 	textField.setAttribute('Name', 'myTextField')
 	textField.style.display = 'block'
 	myForm.appendChild(textField)
 	
 */
 	// Place the form into the page
 	parentElement.appendChild(myForm)
 	
 	// Bit o IE bug fixin'
 	if(navigator.appVersion.indexOf("MSIE") != -1) 
	{

    // Fixes the name issue, event handling, and rendering bugs!
 		 parentElement.innerHTML = parentElement.innerHTML

	}
 	
}
