/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function clearEmailBox() {
    document.forms.emailForm.elements['email'].value="";
}

function checkSubmit(choice) {
    var emailAddress=document.forms.emailForm.elements['email'].value;

    if (emailAddress!="Enter your email address")
    {
        if (emailAddress.length > 0 )
        {
            // post
            if (choice == "0")
            {
                document.forms.emailForm.elements['subject'].value="Subscribe";
            }
            else
            {
                document.forms.emailForm.elements['subject'].value="Unsubscribe";
            }

            document.forms.emailForm.action="http://us.1.p3.webhosting.yahoo.com/forms?login=kesarwam99&confirm=&error=";
            document.forms.emailForm.method="post";
            document.forms.emailForm.submit();
        }
    }
    else
    {
        alert("Enter your email address");
    }
}


