function CheckSubscribe(regFrm)
{

	var m=regFrm.txtEmail.value;

	if(m.indexOf("@")<1||m.indexOf(".")==-1
	||m.lastIndexOf(".")==(m.length-1)
	||m.indexOf("@")-m.indexOf(".")==1
	||m.lastIndexOf(".")-m.indexOf("@")==1
	||m.lastIndexOf(".")-m.indexOf("@")==1
	||m.indexOf("@")!=m.lastIndexOf("@"))
		{
		alert("Please provide a valid email address!");
		document.getElementById("txtEmail").focus();
		document.getElementById("txtEmail").select();
		return false;
		} 
	else
		return true;
}

function showhide(id, state) {
	if(dom3 && $(id))						{$(id).style.display = state ? "block" : "none";}
	else if (ns4 && document.id)			{document.layers[id].visibility = state ? "show" : "hide";}
	else if (ie4 && document.all.id)		{document.all[id].style.visibility = state ? "visible" : "hidden";}
}

/*
function wait(frm) {
	document.body.style.background="#fff";
	showhide('content', 0);
	showhide('div_wait', 1);
	//patch for ie
	if(ie) $("progress").innerHTML = "&lt;img src=\"site/default/img/progress.gif\" alt=\"\"/&gt;";
	return true;
}
*/