function createMarker(point, counter)
{
	var marker = new GMarker(point);
	GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml('<a href="detail.asp?m=' + aID[counter] + '>' + aName[counter] + '</a><BR>' + aAddress[counter]);});
	//GEvent.addListener(marker, "mouseover", function() {document.getElementById('label' + i).style.zIindex = document.getElementById('label' + i).style.zIndex + 10;});
	return marker;
}

function setTarget(state)
{
	oForm = document.forms[0];
	switch(state)
	{
		case 0:
			oForm.action = "search.asp";
		break;
		case 1:
			oForm.action = "registration_proc.asp";
		break;
		case 2:
			oForm.action = "promotion_proc.asp";
		break;
		case 3:
			oForm.action = "unsubscribe_proc.asp";
		break;
		case 4:
			oForm.action = "survey_proc.asp";
		break;
	}
}

function showError(sTitle, sBody)
{
	document.getElementById('errortitle').innerHTML = "<b>" + sTitle + "</b>";
	document.getElementById('errortext').innerHTML = sBody + "<BR>&nbsp;";
	document.getElementById('errorbox').style.display = "inline";
	setTimeout("clearError();", 7500);
}

function clearError()
{
	document.getElementById('errorbox').style.display = "none";
	document.getElementById('errortitle').innerHTML = "&nbsp;";
	document.getElementById('errortext').innerHTML = "&nbsp;";
	
}
