
function btnSend_onclick()
{

	var inpEMail = document.all["inpEMail"];
	if (inpEMail.value)
	{
		if (!IsValidEMail(inpEMail.value))
		{
			alert('Invalid EMail address');
			inpEMail.focus();
			//inpEMail.select(); 
			return;
		}
	}
	var Comments = document.all["Comments"];
	if (!Comments.value)
	{
	alert('Please attachment your fullfield form!');
	Comments.focus();
	return;
	}
	frmComments.submit();
}

function btnClear_onclick()
{
	if (confirm('Are you sure to Cancle the Attachment?')) 
		frmComments.reset();
}

function selCategory_onchange()
{
	var trVisitFreq = document.getElementById("trVisitFreq");
	if (!trVisitFreq) return;
	var selCategory = document.getElementById("selCategory");
	if (!selCategory) return;
	var Vis = "none"
	switch (selCategory.value)
	{
		case "General":
		case "Broken":
		case "Feedback":
			Vis = "inline";
		break;
	}
	trVisitFreq.style.display = Vis;
}

