var arrSubmitFunction = new Array()

var NS4 = document.layers
var NS6 = document.getElementById && !document.all
var IE4 = document.all

var bolClicked = false;


function SetDIVContent(strDIVName, strContent)
{
	if(NS4)
	{
		objContent = eval("document."+strDIVName);
		objContent.document.write(strContent);
		objContent.document.close();
	}
	if(NS6)
	{
		document.getElementById(strDIVName).innerHTML=strContent;
	}
	if(IE4)
	{
		document.all(strDIVName).innerHTML=strContent;
	}
}


function SubmitFunction_Register(strFunction)
{
	arrSubmitFunction[arrSubmitFunction.length] = strFunction;
}


function SubmitFunction_Execute()
{
	for(var intLoop=0; intLoop < arrSubmitFunction.length; intLoop++)
	{
		eval(arrSubmitFunction[intLoop]);
	}
	return true;
}


function FormClickProtection(objSubmit)
{
	if(bolClicked == true)
	{
		alert("Please be patient and wait for your information to be submitted to our server");
		return false;
	}
	else
	{
	
		bolOK      = confirm("The information you have entered is about to be submitted to our server, please do not click the button a second time.\n\nAre you sure you want to do this?");

		if(bolClicked == false && bolOK == true)
		{
			bolClicked = true;
			
			//objSubmit.disabled = true;
			
			return true;
		}
		else
		{
			return false;
		}
	}
}