function viewChildNav(element)
{
		if(document.getElementById(element).style.display=="none")
			document.getElementById(element).style.display="block";
		else
			document.getElementById(element).style.display="none";	
	}
function offChildNav(element)
{
	document.getElementById(element).style.display="none";
	}
	
	
function ShowRegBox()
{
	document.getElementById("regbox").style.display = "block";
	document.getElementById("reg_mail").focus();
}

function joinM()
 {
 	
	var email = document.getElementById("reg_mail").value;
	
	if(email != ""){
		
 	
		var sUrl = "/insert.asp?email=" + email;
		
		    var sParam = null;
		    var oXml = sendXMLHTTP(sUrl,sParam, false, "GET");
		
		    if(oXml.status == 200 && oXml.responseText != -1)
		    {
		      var returnVal = oXml.responseText;
			  document.getElementById("Tdiv").innerHTML = returnVal;
		    }
		    else if(oXml.status != 200)
			{
			
			}
	}

	
 }
 
 
 function Print(dir)
{
	var win_w = 778;
	var win_h = screen.availHeight;
     var left_pos = ((screen.width - win_w) / 2);
	window.open("/print.asp?dir="+dir,"","width="+win_w+", height="+win_h+",left="+left_pos+",top=250,scrollbars=1"); 
	
}



function OpenS(info_id)
{
	var win_w = 330;
	var win_h = 240;
	var left_pos = ((screen.width - win_w) / 2);
	window.open("/send_m.asp?a_info_id="+info_id,"","width="+win_w+", height="+win_h+", left="+left_pos+", top=250"); 
	
}








