function check_focus(a){element=document.forms.email_friends["forward_email[]"][a];if(element.value=="                     @"){element.value=""}}function check_blur(a){element=document.forms.email_friends["forward_email[]"][a];if(element.value==""){element.value="                     @"}}function check_friend_emails(){elements=document.forms.email_friends["forward_email[]"];for(i=0;i<elements.length;i++){element=document.forms.email_friends["forward_email[]"][i].value;if(element!="                     @"&&!is_valid_email(element)){alert("An email address you have entered is not a valid format");return false}}document.forms.email_friends.submit()}function is_valid_email(a){return(a.indexOf(".")>2)&&(a.indexOf("@")>0)}function hide_manual_email(){document.getElementById("email_chart").style.display="none"}function show_instant_msg(){document.getElementById("msg_chart").style.display="block"}function hide_instant_msg(){document.getElementById("msg_chart").style.display="none"}function show_manual_email(){document.getElementById("email_chart").style.display="block"}function hide_publicise(){document.getElementById("email_chart").style.display="none";document.getElementById("publicise").style.display="none"}function hide_chart_links(){document.getElementById("chart_links").style.display="none"}function show_chart_links(){document.getElementById("chart_links").style.display="block"};

