/****************************************
* Author - Paul Tarr
* Company - Internet Concepts Limited
* Revision - 1.0 
*****************************************/
function getNewSubmitForm(){
 var submitForm = document.createElement("FORM");
 document.body.appendChild(submitForm);
 submitForm.method = "POST";
 return submitForm;
}

//helper function to add elements to the form
function createNewFormElement(inputForm, elementName, elementValue){
var newElement = document.createElement("input");
inputForm.appendChild(newElement);
newElement.name = elementName;
newElement.type = 'text';
newElement.value = elementValue;
return newElement;
}


//function that creates the form, adds some elements
//and then submits it
function submitForm(nature){
 var submitForm = getNewSubmitForm();
 createNewFormElement(submitForm, "nature", nature);
 submitForm.action= "contact";
 submitForm.submit();
}

	function ShowHelp(img, title, desc)
	{
		img = document.getElementById(img);
		div = document.createElement('div');
		div.id = 'help';

		div.style.display = 'inline';
		div.style.position = 'absolute';
		div.style.width = '350';

		div.style.backgroundColor = '#FEFCD5';
		div.style.border = 'solid 1px #E7E3BE';
		div.style.padding = '10px';
		div.innerHTML = '<span class=helpTip><strong>' + title + '<\/strong><\/span><br /><img src=/images/1x1.gif width=1 height=5><br /><div style="padding-left:10; padding-right:5; width:350px;" class=helpTip>' + desc + '<\/div>';

		//img.parentNode.appendChild(div);
		var parent = img.parentNode;
		if(img.nextSibling)
			parent.insertBefore(div, img.nextSibling);
		else
			parent.appendChild(div)
	}

	function HideHelp(img)
	{
		img = document.getElementById(img);
		div = document.getElementById('help');
		if (div) {
			img.parentNode.removeChild(div);
		}
	}