function sendMail( sendTo, subject )
{
	var strURL = "mailto:" + sendTo;
	var blnFullURL = false;
	
	if (strURL.indexOf("_at_") >= 0)
	{
		blnFullURL = true;
		
		strURL = strURL.replace("_at_","@");
	}
	
	if (strURL.indexOf("_dot_") >= 0)
	{
		blnFullURL = true;
		
		strURL = strURL.replace("_dot_",".");
	}
	
	if (blnFullURL != true)
	{
		strURL += "@chonresources.com";
	}
	
	if (subject)
	{
		strURL += "?subject=" + escape(subject);
	}
	
	location.href = strURL;
}

// toggle display property for  designated div and modify button text as appropriate
function toggleDiv(btnID, divID, btnText)
{
	//alert("In toggleDiv");
	
	var btn = document.getElementById(btnID);
	var div = document.getElementById(divID);
	
	//alert("display = '" + div.style.display + "'");
	
	if (div.style.display == "none")
	{
		div.style.display = "block";
		btn.value = "Hide " + btnText + " details";
	} else
	{
		div.style.display = "none";
		btn.value = "Show " + btnText + " details";
	}
}

// display selected payment button
function showPayButton(btnID)
{
	//alert("btnID = '" + btnID + "'");
	
	document.getElementById("payMTS1").style.display = "none";
	document.getElementById("payMTS2").style.display = "none";
	document.getElementById("payMTS3").style.display = "none";
	
	switch (btnID)
	{
		case "1":
			{
				//alert("Case 1");
				document.getElementById("payMTS1").style.display = "block";
			}
			break;
		
		case "2":
			{
				//alert("Case 2");
				document.getElementById("payMTS2").style.display = "block";
			}
			break;
		
		case "3":
			{
				//alert("Case 3");
				document.getElementById("payMTS3").style.display = "block";
			}
			break;
			
		default:
			//alert("WTF?");
			break;
	}
}