function Snapshots(width, height, page)
{
    var scroll = 'no';
    var top=0, left=0;
    width = width + 50;
    height = height + 120;
    if(width > screen.width-10 || height > screen.height-36)
    {
        scroll = 'yes';
    }
    if(height < screen.height-36)
    {
        top = Math.floor((screen.height - height)/2-18);
    }
    if(width < screen.width-10)
    {
        left = Math.floor((screen.width - width)/2);
    }
    width = Math.min(width, screen.width-10);
    height = Math.min(height, screen.height-68);
    window.open(page+'.html','','scrollbars='+scroll+',resizable=yes,width='+width+',height='+height+',left='+left+',top='+top);
}

function WinCD()
{
    tellafriend=window.open("http://www.regsoft.net/regsoft/tellafriend.php3?productid=51643","tellafriend","scrollbars=yes,width=700,height=500");
}

function SendMail(mail, subject)
{
    location.href = "mailto:"+mail.replace("#go#","@")+"?subject="+subject;
}

function mail_Validator(f)
{
    if (f.elements[0].value.length < 1)
    {
        alert("Your address is required.");
        f.elements[0].focus();
        return(false);
    }
    if (window.RegExp)
    {
        var reg = new RegExp("^[^@ ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|net|com|gov|mil|org|edu|int|biz|info|firm|name|nato|nom|store|web|NET|COM|GOV|MIL|ORG|EDU|INT|BIZ|INFO|FIRM|NAME|NATO|NOM|STORE|WEB)$","g");
        if (!reg.test(f.elements[0].value))
        {
            alert("Your address is not a valid email address.");
            f.elements[0].focus();
            return(false);
        }
    }
}
