
function PopMessage(addr, domain)
{
if (addr != undefined && domain != undefined)
{
window.location.href = 'mail' + 'to' + ':' + addr + '@' + domain;
}
}function TextEffect()
{
if ($('TextCallout'))
{
Effect.Appear('TextCallout', { duration: 1.0 });
}
}function ToggleRightBox(switchTo)
{
if (switchTo == 'blogs')
{
$('SidebarNews').style.display = 'none';
$('SidebarBlogs').style.display = 'inline';
} else {
$('SidebarBlogs').style.display = 'none';
$('SidebarNews').style.display = 'inline';
}
}function BlogComment() 
{
var errors = false;
if ($F('First') || !$F('Name') || !$F('Email') || !$F('Comments'))
{
alert("Name, Email and Comments are required. Please make sure to fill them all in and try again.");
errors = true;
}if (!errors)
{
new Ajax.Request('/blog/comment.php', {
method: 'post',
parameters: {
Blog_id : $F('Blog_id'),
Name : $F('Name'),
Email : $F('Email'),
Comments : $F('Comments')
},
onComplete:function(transport)
{
if (transport.responseText == 'OK')
{
$('NewComment').innerHTML = 'Thanks for submitting your comments. They will be posted on the site once they are approved by GEM administrators.';
} else {
$('NewComment').innerHTML = 'There was an error posting your comment. Please refresh the page and try again.';
}
}
});
}
}