﻿function OpenContactUsForm()
{
    OpenLink(WillsonRootURL + "Contact_Us.aspx","ContactUs", 500, 525);
}

function NewsletterSignup() 
{
    
    var url = 'http://visitor.constantcontact.com/d.jsp';
    url += '?m=1102339964213&p=oi';
    var handle = window.open(url, 'NewsletterSignup', 'width=600,height=500');
    handle.focus();
}

function OpenLink(URL, Name, Width, Height)
{
    URL = WillsonRootURL + URL;
    var options = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=" + Width +",height=" + Height +",left = 60,top = 112";
    var handle = window.open(URL, Name, options);
    handle.focus();
}

function ClearWatermark(txtBox, watermark) 
{
    if (txtBox.value == watermark) {
        txtBox.value = '';
    }
}

function ShowWatermark(txtBox, watermark) 
{
    if (txtBox.value == '') {
        txtBox.value = watermark;
    }
}