Solved

form in facebook javascript and post problems

Posted on 2009-07-07
44
4,233 Views
Last Modified: 2013-11-05
Hi Experts,

I Hope this is the right area to ask this question.

I am creating a "sign up for a newsletter" form. Inside this form I have a validation JS function  to check to see if the text boxes are filled. Also this page should post to an external page where it would do the database insert.

THE PROBLEM:
If I do the following:
<form onsubmit="return sbmit_comment_form()" name="comment" method="post" action="">
It goes trough my sbmit_comment_form() and throws box errors to let the user know what fields need be filled.

If I do this:
<form name="comment" method="post" action="http://www.mydomain.com/data/formSubmit.asp">
Here I don't use my validation function and it works great, it goes to my page in my site and inserts or updates my DB.

BUT IF I COMBINE THEM BOTH LIKE THIS:
<form onsubmit="return sbmit_comment_form()" name="comment" method="post" action="http://www.mydomain.com/data/formSubmit.asp">
It gets stuck in my onsubmit function. It won't post and even if I fill the boxes it acts as if they were empty. Basically, I fill out all the required fields and still gives me errors as if they were empty.

I'll attach code bellow.

Thanks a lot!
<script>

 

function sbmit_comment_form()

{

    error = false

	errorMsg = ""

	

	if(document.getElementById('firstName').getValue() == "")

    {        

        error = true

		errorMsg += "First Name is Required\n"

      // return false;

    }

	if(document.getElementById('lastName').getValue() == "")

    {        

        error = true

		errorMsg += "Last Name is Required\n"

      // return false;

    }

	if(document.getElementById('address').getValue() == "")

    {        

        error = true

		errorMsg += "Address is Required\n"

      // return false;

    }

	if(document.getElementById('city').getValue() == "")

    {        

        error = true

		errorMsg += "City is Required\n"

      // return false;

    }

	if(document.getElementById('state').getValue() == "")

    {        

        error = true

		errorMsg += "State is Required\n"

      // return false;

    }

	if(document.getElementById('zip').getValue() == "")

    {        

        error = true

		errorMsg += "Zip is Required\n"

      // return false;

    }

	if(document.getElementById('phone').getValue() == "")

    {        

        error = true

		errorMsg += "Phone is Required\n"

      // return false;

    }

	if(document.getElementById('bday').getValue() == "")

    {        

        error = true

		errorMsg += "Birth day is Required\n"

      // return false;

    }

	if(document.getElementById('bmonth').getValue() == "")

    {        

        error = true

		errorMsg += "Birth month is Required\n"

      // return false;

    }

	if(document.getElementById('byear').getValue() == "")

    {        

        error = true

		errorMsg += "Birth year is Required\n"

      // return false;

    }

	

	if (document.getElementById('email').getValue() == ""){

		error = true

		errorMsg += "Email is Required\n"

	}

 

     if(document.getElementById('email2').getValue() == ""){        

         error = true

	 errorMsg += "Confirmation Email is Required\n"

    }

 

	//if(document.getElementById('email').getValue() == document.getElementById('email2').getValue()){

       //         error = false;

      //  }else{

      //          error = true;

	//	errorMsg += "Please re-enter your email.\n"

//	}

		

	

	//if (document.getElementById('email').getValue() != ""){

		

	//	if(!isEmailValid(document.getElementById('email').getValue())){

	//        error = true

	//        errorMsg += "The email address you entered appears to be invalid.\nPlease re-enter.\n"

	//    }

	//}

 

    if (!error) {

		return true;

	} else {

		new Dialog().setStyle('color', 'red').showMessage('Dialog', errorMsg);

		return false;

	}	

}

 </script>

 

 

<form onsubmit="return sbmit_comment_form()" name="comment" method="post" action="http://www.mydomain.com/data/formSubmit.asp">

                 <input name="emailRecipients" type="hidden" value="consumerrelations@mydomain.com" ID="Hidden7">

    <input type=hidden name="emailSubject" value="submitted the Newsletter Signup Form" ID="Hidden8">

    <input name="replyToField" type="hidden" value="E-Mail Address" ID="Hidden9">

    <input name="redirect" type="hidden" value="http://www.mydomain.com/contact/sign_up_for_our_e-newsletter/thankyou.asp" ID="Hidden10">

    <input name="emailFrom" type="hidden" value="consumerrelations@mydomain.com" ID="Hidden11">

    <input name="formId" type="hidden" value="4" ID="Hidden12">

 

	First Name:  <input type="text" name="firstName" id="firstName" maxlength="30"><br /><br />

	Last Name:  <input type="text" name="lastName" id="lastName" maxlength="30"><br /><br />

   	Address:  <input type="text" name="address" id="address" maxlength="30"><br /><br />

  	City:  <input type="text" name="city" id="city" maxlength="30"><br /><br />

       State:  

    		<select name="state" ID="state" class="content">

	                    <option value="">---</option>

		                <option value="AL">AL</option>

		                <option value="AK">AK</option>

		                <option value="AZ">AZ</option>

		                <option value="AR">AR</option>

		                <option value="CA">CA</option>

		                <option value="CO">CO</option>

		                <option value="CT">CT</option>

		                <option value="DE">DE</option>

		                <option value="DC">DC</option>

		                <option value="FL">FL</option>

		                <option value="GA">GA</option>

		                <option value="HI">HI</option>

		                <option value="ID">ID</option>

		                <option value="IL">IL</option>

		                <option value="IN">IN</option>

		                <option value="IA">IA</option>

		                <option value="KS">KS</option>

		                <option value="KY">KY</option>

		                <option value="LA">LA</option>

		                <option value="ME">ME</option>

		                <option value="MD">MD</option>

		                <option value="MA">MA</option>

		                <option value="MI">MI</option>

		                <option value="MN">MN</option>

		                <option value="MS">MS</option>

		                <option value="MO">MO</option>

		                <option value="MT">MT</option>

		                <option value="NE">NE</option>

		                <option value="NV">NV</option>

		                <option value="NH">NH</option>

		                <option value="NJ">NJ</option>

		                <option value="NM">NM</option>

		                <option value="NY">NY</option>

		                <option value="NC">NC</option>

		                <option value="ND">ND</option>

		                <option value="OH">OH</option>

		                <option value="OK">OK</option>

		                <option value="OR">OR</option>

		                <option value="PA">PA</option>

		                <option value="RI">RI</option>

		                <option value="SC">SC</option>

		                <option value="SD">SD</option>

		                <option value="TN">TN</option>

		                <option value="TX">TX</option>

		                <option value="UT">UT</option>

		                <option value="VT">VT</option>

		                <option value="VA">VA</option>

		                <option value="WA">WA</option>

		                <option value="WV">WV</option>

		                <option value="WI">WI</option>

		                <option value="WY">WY</option>

	                </select><br /><br />

    Zip:  <input type="text" name="zip" id="zip" maxlength="30"><br /><br />

    Phone:  <input type="text" name="phone" id="phone" maxlength="30"><br /><br />

    birthday:  

    			<select name="bmonth" class="input_box" id="bmonth" style="width:117px;">

                    <option value="">Month

                    <option value="1">January

                    <option value="2">February

                    <option value="3">March

                    <option value="4">April

                    <option value="5">May

                    <option value="6">June

                    <option value="7">July

                    <option value="8">August

                    <option value="9">September

                    <option value="10">October

                    <option value="11">November

                    <option value="12">December

                </select>

                <select name="bday" class="input_box" id="bday" style="width:56px;">

                    <option value="">Day

                    <option value="1">1

                    <option value="2">2

                    <option value="3">3

                    <option value="4">4

                    <option value="5">5

                    <option value="6">6

                    <option value="7">7

                    <option value="8">8

                    <option value="9">9

                    <option value="10">10

                    <option value="11">11

                    <option value="12">12

                    <option value="13">13

                    <option value="14">14

                    <option value="15">15

                    <option value="16">16

                    <option value="17">17

                    <option value="18">18

                    <option value="19">19

                    <option value="20">20

                    <option value="21">21

                    <option value="22">22

                    <option value="23">23

                    <option value="24">24

                    <option value="25">25

                    <option value="26">26

                    <option value="27">27

                    <option value="28">28

                    <option value="29">29

                    <option value="30">30

                    <option value="31">31

                </select>

                <SELECT NAME="byear" id="byear" class="input_box" style="width:55px;">

                    <option value="">Year</option>

                    <OPTION value =1900>1900</OPTION>

                    <OPTION value =1901>1901</OPTION>

                    <OPTION value =1902>1902</OPTION>

                    <OPTION value =1903>1903</OPTION>

                    <OPTION value =1904>1904</OPTION>

                    <OPTION value =1905>1905</OPTION>

                    <OPTION value =1906>1906</OPTION>

                    <OPTION value =1907>1907</OPTION>

                    <OPTION value =1908>1908</OPTION>

                    <OPTION value =1909>1909</OPTION>

                    <OPTION value =1910>1910</OPTION>

                    <OPTION value =1911>1911</OPTION>

                    <OPTION value =1912>1912</OPTION>

                    <OPTION value =1913>1913</OPTION>

                    <OPTION value =1914>1914</OPTION>

                    <OPTION value =1915>1915</OPTION>

                    <OPTION value =1916>1916</OPTION>

                    <OPTION value =1917>1917</OPTION>

                    <OPTION value =1918>1918</OPTION>

                    <OPTION value =1919>1919</OPTION>

                    <OPTION value =1920>1920</OPTION>

                    <OPTION value =1921>1921</OPTION>

                    <OPTION value =1922>1922</OPTION>

                    <OPTION value =1923>1923</OPTION>

                    <OPTION value =1924>1924</OPTION>

                    <OPTION value =1925>1925</OPTION>

                    <OPTION value =1926>1926</OPTION>

                    <OPTION value =1927>1927</OPTION>

                    <OPTION value =1928>1928</OPTION>

                    <OPTION value =1929>1929</OPTION>

                    <OPTION value =1930>1930</OPTION>

                    <OPTION value =1931>1931</OPTION>

                    <OPTION value =1932>1932</OPTION>

                    <OPTION value =1933>1933</OPTION>

                    <OPTION value =1934>1934</OPTION>

                    <OPTION value =1935>1935</OPTION>

                    <OPTION value =1936>1936</OPTION>

                    <OPTION value =1937>1937</OPTION>

                    <OPTION value =1938>1938</OPTION>

                    <OPTION value =1939>1939</OPTION>

                    <OPTION value =1940>1940</OPTION>

                    <OPTION value =1941>1941</OPTION>

                    <OPTION value =1942>1942</OPTION>

                    <OPTION value =1943>1943</OPTION>

                    <OPTION value =1944>1944</OPTION>

                    <OPTION value =1945>1945</OPTION>

                    <OPTION value =1946>1946</OPTION>

                    <OPTION value =1947>1947</OPTION>

                    <OPTION value =1948>1948</OPTION>

                    <OPTION value =1949>1949</OPTION>

                    <OPTION value =1950>1950</OPTION>

                    <OPTION value =1951>1951</OPTION>

                    <OPTION value =1952>1952</OPTION>

                    <OPTION value =1953>1953</OPTION>

                    <OPTION value =1954>1954</OPTION>

                    <OPTION value =1955>1955</OPTION>

                    <OPTION value =1956>1956</OPTION>

                    <OPTION value =1957>1957</OPTION>

                    <OPTION value =1958>1958</OPTION>

                    <OPTION value =1959>1959</OPTION>

 

                    <OPTION value =1960>1960</OPTION>

                    <OPTION value =1961>1961</OPTION>

                    <OPTION value =1962>1962</OPTION>

                    <OPTION value =1963>1963</OPTION>

                    <OPTION value =1964>1964</OPTION>

                    <OPTION value =1965>1965</OPTION>

                    <OPTION value =1966>1966</OPTION>

                    <OPTION value =1967>1967</OPTION>

                    <OPTION value =1968>1968</OPTION>

                    <OPTION value =1969>1969</OPTION>

                    <OPTION value =1970>1970</OPTION>

                    <OPTION value =1971>1971</OPTION>

                    <OPTION value =1972>1972</OPTION>

                    <OPTION value =1973>1973</OPTION>

                    <OPTION value =1974>1974</OPTION>

                    <OPTION value =1975>1975</OPTION>

                    <OPTION value =1976>1976</OPTION>

                    <OPTION value =1977>1977</OPTION>

                    <OPTION value =1978>1978</OPTION>

                    <OPTION value =1979>1979</OPTION>

                    <OPTION value =1980>1980</OPTION>

                    <OPTION value =1981>1981</OPTION>

                    <OPTION value =1982>1982</OPTION>

                    <OPTION value =1983>1983</OPTION>

                    <OPTION value =1984>1984</OPTION>

                    <OPTION value =1985>1985</OPTION>

                    <OPTION value =1986>1986</OPTION>

                    <OPTION value =1987>1987</OPTION>

                    <OPTION value =1988>1988</OPTION>

                    <OPTION value =1989>1989</OPTION>

                    <OPTION value =1990>1990</OPTION>

                    <OPTION value =1991>1991</OPTION>

                    <OPTION value =1992>1992</OPTION>

                    <OPTION value =1993>1993</OPTION>

                    <OPTION value =1994>1994</OPTION>

                    <OPTION value =1995>1995</OPTION>

                    <OPTION value =1996>1996</OPTION>

                    <OPTION value =1997>1997</OPTION>

                    <OPTION value =1998>1998</OPTION>

                    <OPTION value =1999>1999</OPTION>

                    <OPTION value =2000>2000</OPTION>

             </SELECT><br /><br />

    E-mail:  <input type="text" name="email" id="email" maxlength="30"><br /><br />

    Re-enter E-mail:  <input type="text" name="email2" id="email2" maxlength="30"><br /><br />

    <input type="submit" name="submit" value="Submit" />

</form>

Open in new window

0
Comment
Question by:vthunder70
  • 18
  • 16
  • 7
  • +1
44 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24801564
can you show the html produced by facebook for the form?
0
 

Author Comment

by:vthunder70
ID: 24803144
sure thing.

I"m attaching the whole HTML is you want me to send you a trim down version I'll be glad to do so.

Thanks a lot!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" id="facebook">

<head>

<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

<meta http-equiv="Content-language" content="en" />

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

<script type="text/javascript">

//<![CDATA[

disableRPAR=1;(function(loc) { if (loc.pathname == '/') { return; } var uri_re = /^(?:(?:[^:\/?#]+):)?(?:\/\/(?:[^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/; var target_domain = ''; loc.href.replace(uri_re, function(all, path, query, frag) { var dst, src; dst = src = path + (query ? '?' + query : ''); if (frag) { if (frag.charAt(0) == '/') { dst = frag.replace(/^\/+/, '/') .replace(/_fb_qsub=([^&]+)&?/, function(all, domain){ if (domain.substring(domain.length - 13) == '.facebook.com') { target_domain = 'http://'+domain; } return ''; }); } else if (/&|=/.test(frag)) { var q = {}; var m = frag.match(/([^#]*)(#.*)?/); var arr = (query||'').split('&').concat((m[1]||'').split('&')); for (var i=0, length=arr.length; i<length; i++) { var t = arr[i].split('='); if (t.length && t[0] != '') { q[t[0]] = t[1]; } } var s = []; for (var i in q) { s.push(i+ (q[i]?'='+q[i]:'')); } dst = path+'?'+s.join('&')+(m[2]||''); } } dst = "" + dst; if (dst != src) { window.location.replace(target_domain + dst); } }); })(window.location); var onloadRegister = window.onloadRegister || function(h) { onloadhooks.push(h); }; var onloadhooks = window.onloadhooks || []; var onafterloadRegister = window.onafterloadRegister || function(h) { onafterloadhooks.push(h); }; var onafterloadhooks = window.onafterloadhooks || []; function wait_for_load(element, e, f) { f = bind(element, f, e); if (window.loaded) { return f(); } switch ((e || event).type) { case 'load': case 'focus': onloadRegister(f); return; case 'click': if (element.original_cursor === undefined) { element.original_cursor = element.style.cursor; } if (document.body.original_cursor === undefined) { document.body.original_cursor = document.body.style.cursor; } element.style.cursor = document.body.style.cursor = 'progress'; onafterloadRegister(function() { element.style.cursor = element.original_cursor; document.body.style.cursor = document.body.original_cursor; element.original_cursor = document.body.original_cursor = undefined; if (element.tagName.toLowerCase() == 'a') { var original_event = window.event; window.event = e; var ret_value = element.onclick.call(element, e); window.event = original_event; if (ret_value !== false && element.href) { window.location.href = element.href; } } else if (element.click) { element.click(); } }); break; } return false; }; function bind(obj, method ) { var args = []; for (var ii = 2; ii < arguments.length; ii++) { args.push(arguments[ii]); } var fn = function() { var _obj = obj || (this == window ? false : this); var _args = args.slice(); for (var jj = 0; jj < arguments.length; jj++) { _args.push(arguments[jj]); } if (typeof(method) == "string") { if (_obj[method]) { return _obj[method].apply(_obj, _args); } } else { return method.apply(_obj, _args); } }; if (typeof method == 'string') { fn.name = method; } else if (method && method.name) { fn.name = method.name; } fn.toString = function() { return bind._toString(obj, args, method); }; return fn; }; var curry = bind(null, bind, null); bind._toString = bind._toString || function(obj, args, method) { return (typeof method == 'string') ? ('late bind<'+method+'>') : ('bound<'+method.toString()+'>'); }; function goURI(uri, force_reload) { uri = uri.toString(); if (!force_reload && window.PageTransitions && PageTransitions.isInitialized()) { PageTransitions.go(uri); } else if (window.location.href == uri) { window.location.reload(); } else { window.location.href = uri; } } var PrimordialBootloader = window.PrimordialBootloader || { loaded : [], done : function(names) { PrimordialBootloader.loaded.push(names); } }; var Bootloader = window.Bootloader || { done : PrimordialBootloader.done }; function loadExternalJavascript(urls, callback, body) { if (urls instanceof Array) { var url = urls.shift(0); loadExternalJavascript(url, function() { if (urls.length) { loadExternalJavascript(urls, callback, body); } else { callback && callback(); } }, body); } else { var node = body ? document.body : document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = urls; if (callback) { script.onerror = script.onload = callback; script.onreadystatechange = function() { if (this.readyState == "complete" || this.readyState == "loaded") { callback(); } } } node.appendChild(script); return script; } } window.loadFirebugConsole && loadFirebugConsole(); var rsrcProvideAndRequire = function() { var loaded = {}, pending = {}; function isBlocked(local, foreign, exclude) { if (local in pending) { exclude = exclude || {}; for (var ii in pending[local].requires) { if (!(ii in exclude)) { for (var jj in pending[local].provides) { exclude[jj] = 1; } if ((ii in foreign) || isBlocked(ii, foreign, exclude)) { return true; } } } } return false; } function checkSatisfied() { do { var hit = false; for (var ii in pending) { var res = pending[ii]; for (var jj in res.requires) { if (!loaded[jj] && !isBlocked(jj, res.provides)) { res = null; break; } } if (res) { for (jj in res.provides) { delete pending[jj]; loaded[jj] = 1; } res.fn.call(); hit = true; } } } while(hit); } return function(provides, requires, fn) { if (window.disableRPAR) { fn(); return; } var desc = { provides: provides, requires: requires, fn: fn }; for (var ii in provides) { pending[ii] = desc; } checkSatisfied(); } }();document.cookie = "cvr_tx=; expires=Mon, 26 Jul 1997 05:00:00 GMT; path=\/; domain=.facebook.com";

//]]>

</script><noscript> <meta http-equiv=refresh content="0; URL=http://www.facebook.com/pages/New-England-Coffee/85814165780?v=app_6009294086&viewas=1324118609&_fb_noscript=1" /> </noscript>
 

<meta name="description" content="Welcome to the official Facebook Page of New England Coffee. Get exclusive content and interact with New England Coffee right from Facebook. Join Facebook to create your own Page or to start connecting with friends." />

<meta name="robots" content="noodp,noydir" />

<link rel="canonical" href="http://www.facebook.com/pages/New-England-Coffee/85814165780?v=app_6009294086" />

<title>Facebook | New England Coffee Sign up for the New England Coffee e-Newsletter!</title>
 

<script type="text/javascript">

Env={pagecache_whitelist_regex:"^\\\/ajax\\\/(presence\\\/|chat\\\/|proxy\\.php)",quickling_inactive_page_regex:"^\\\/(election08\\\/|username\\\/|login\\.php|comments\\.php|logout\\.php|sorry\\.php|help\\.php|giftshop\\.php|ac\\.php|ae\\.php|ajax\\\/emu\\\/h\\.php|ext\\\/|ads\\\/create\\\/|feeds\\\/|.+(\\?|&)fb95_opt_(in|out)|intern\\\/(?!example\\\/page_cache)|sitetour\\\/homepage_tour\\.php)",method:"GET",dev:0,start:(new Date()).getTime(),ps_limit:5,ps_ratio:4,svn_rev:172773,static_base:"http:\/\/static.ak.fbcdn.net\/",www_base:"http:\/\/www.facebook.com\/",tlds:["com","at","ca","co.nz","co.za","com.au","dk","es","ie","jp","net.nz","no","pl","se","vn"],ajax_bundle:1,rep_lag:2,post_form_id:"3624f9eeff7b2aaac4f3640ae3e09404",fb_dtsg:"pRbhea7tm28f92_XMju9iiE5R3Q"};
 

</script>
 

    <script type="text/javascript" src="http://b.static.ak.fbcdn.net/rsrc.php/z8H85/lpkg/b6o48dqg/en_US/141/172704/js/d74arak6ngo4484c.pkg.js"></script>

<script type="text/javascript">Bootloader.loadInitialResources([{"name":"js\/duyxoi22mzccw8k0.pkg.js","type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z9645\/lpkg\/vkb9ce2b\/en_US\/141\/172736\/js\/duyxoi22mzccw8k0.pkg.js","permanent":false},{"name":"js\/5gkxh7ddngsocgog.pkg.js","type":"js","src":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zAYRG\/lpkg\/ac49oggl\/en_US\/141\/172410\/js\/5gkxh7ddngsocgog.pkg.js","permanent":false},{"name":"js\/fbjs.js","type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z57BQ\/l\/6qcw7252\/nu_ll\/169465\/js\/fbjs.js","permanent":false},{"name":"js\/1qyd79nvbnogocw8.pkg.js","type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/zDBOU\/lpkg\/2jcawtwv\/en_US\/141\/168166\/js\/1qyd79nvbnogocw8.pkg.js","permanent":false},{"name":"js\/bd92cz7b1og0kkss.pkg.js","type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z8C2I\/lpkg\/bat6l02s\/en_US\/141\/167919\/js\/bd92cz7b1og0kkss.pkg.js","permanent":false},{"name":"js\/de7yulmutx4woo04.pkg.js","type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/zEQTW\/lpkg\/bg2pbczx\/en_US\/141\/172455\/js\/de7yulmutx4woo04.pkg.js","permanent":false},{"name":"js\/18m93d47y8hwc8ks.pkg.js","type":"js","src":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/z6XEH\/lpkg\/1l1ud189\/en_US\/141\/172187\/js\/18m93d47y8hwc8ks.pkg.js","permanent":false},{"name":"js\/d5qz08c8dtwgo4c8.pkg.js","type":"js","src":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zC3OD\/lpkg\/ahhaf85a\/en_US\/141\/172161\/js\/d5qz08c8dtwgo4c8.pkg.js","permanent":false},{"name":"js\/9r852sg136kgckgc.pkg.js","type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/zAQJJ\/lpkg\/5pa5boiw\/en_US\/141\/171865\/js\/9r852sg136kgckgc.pkg.js","permanent":false},{"name":"js\/8rixrqbu87oco808.pkg.js","type":"js","src":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/z4UBO\/lpkg\/99qlpey8\/en_US\/141\/159272\/js\/8rixrqbu87oco808.pkg.js","permanent":false},{"name":"js\/6t99vbwpdu8s80oo.pkg.js","type":"js","src":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/z29KY\/lpkg\/7p8y2chf\/en_US\/141\/171165\/js\/6t99vbwpdu8s80oo.pkg.js","permanent":false},{"name":"js\/4bno4b8k998ggc8g.pkg.js","type":"js","src":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/z13U4\/lpkg\/7y8uz1kf\/nu_ll\/141\/167952\/js\/4bno4b8k998ggc8g.pkg.js","permanent":false},{"name":"js\/afdhsu2odxc048cc.pkg.js","type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z126Q\/lpkg\/6akdosvy\/en_US\/141\/171709\/js\/afdhsu2odxc048cc.pkg.js","permanent":false}])</script>

    <link type="text/css" rel="stylesheet" href="http://b.static.ak.fbcdn.net/rsrc.php/zELBW/lpkg/708onpvg/en_US/141/171359/css/yty641oj1jk8sc8k.pkg.css" />

    <link type="text/css" rel="stylesheet" href="http://b.static.ak.fbcdn.net/rsrc.php/zDT2V/lpkg/aarmz04m/en_US/141/146691/css/1lfvk7usbr1cosoo.pkg.css" />

    <link type="text/css" rel="stylesheet" href="http://b.static.ak.fbcdn.net/rsrc.php/zAVY0/lpkg/2wedcip1/en_US/141/169419/css/dyvbngp9u7sw0gks.pkg.css" />

    <link type="text/css" rel="stylesheet" href="http://b.static.ak.fbcdn.net/rsrc.php/zBK5V/lpkg/6rouxcck/en_US/141/167831/css/5q2g5ub7v3sw08wc.pkg.css" />

    <link type="text/css" rel="stylesheet" href="http://static.ak.fbcdn.net/rsrc.php/z52ST/lpkg/h196rmfd/en_US/141/170216/css/ecdcd75owtckk4wc.pkg.css" />
 

    <link type="text/css" rel="stylesheet" href="http://static.ak.fbcdn.net/rsrc.php/zDYD5/lpkg/6xwxw85e/en_US/141/171688/css/59hqerh7kvc4ooc8.pkg.css" />

    <link type="text/css" rel="stylesheet" href="http://static.ak.fbcdn.net/rsrc.php/z6U33/l/8camqfuh/en_US/171688/css/nux_highlight.css" />

    <link type="text/css" rel="stylesheet" href="http://b.static.ak.fbcdn.net/rsrc.php/z3PUQ/lpkg/en5tepv1/en_US/141/163776/css/8h8wx2il930gs8ko.pkg.css" />

    <link type="text/css" rel="stylesheet" href="http://b.static.ak.fbcdn.net/rsrc.php/zCGE4/l/b62mro93/en_US/172172/css/insights/UIInsightsSmall.css" />

    <link type="text/css" rel="stylesheet" href="http://b.static.ak.fbcdn.net/rsrc.php/zB7EK/lpkg/79mhohu6/en_US/141/172202/css/99fcdapv59ooo8kg.pkg.css" />

    <link type="text/css" rel="stylesheet" href="http://static.ak.fbcdn.net/rsrc.php/z6T70/lpkg/ar06q0xo/en_US/141/170837/css/8jlnn6i0f8kkks4k.pkg.css" />

    <link type="text/css" rel="stylesheet" href="http://b.static.ak.fbcdn.net/rsrc.php/z7S9Y/lpkg/8rlx5j7l/en_US/141/171780/css/diud0bkiqvscc4sg.pkg.css" />

<!--[if lte IE 6]><link rel="stylesheet" href="http://b.static.ak.fbcdn.net/rsrc.php/zHCEB/l/5trjuj8y/en_US/166597/css/ie6.css" type="text/css" /><![endif]-->

<!--[if IE 7]><link rel="stylesheet" href="http://b.static.ak.fbcdn.net/rsrc.php/zCS2J/l/a36far0c/en_US/167934/css/ie7.css" type="text/css" /><![endif]-->
 

<link rel="search" type="application/opensearchdescription+xml" href="http://b.static.ak.fbcdn.net/opensearch_desc.xml?8:72379" title="Facebook" />

<link rel="shortcut icon" href="http://static.ak.fbcdn.net/favicon.ico?8:132011" />

</head>

<body class="profile nile_profile ff3 Locale_en_US">

<input type="hidden" id="post_form_id" name="post_form_id" value="3624f9eeff7b2aaac4f3640ae3e09404" /><div id="dropmenu_container"></div><div id="FB_HiddenContainer" style="position:absolute; top:-10000px; left:-10000px; width:0px; height:0px;" ></div><div id="nonfooter"><div id="page_height" class="clearfix"><div id="menubar_container"><div id="fb_menubar" class="clearfix"><div id="fb_menubar_core"><ul class="fb_menu_list"><li class="fb_menu" id="fb_menubar_logo"><a href="/business/dashboard/" title="Go to Facebook Home"><span>&nbsp;</span></a></li><li class="fb_menu" id="fb_menu_"><div class="fb_menu_title"><a href="http://www.facebook.com/upgradeaccount.php">Create Your Profile</a></div></li></ul></div><div id="fb_menubar_aux"><ul class="fb_menu_list"><li class="fb_menu fbm_last"><div id="universal_search" class="clearfix"><form method="get" action="http://www.facebook.com/s.php" name="universal_search_form" id="universal_search_form" onsubmit="return wait_for_load(this, event, function() { search_gen_sid(&quot;1324118609&quot;); return search_validate(&quot;q&quot;); });"><div id="universal_search_input"><input id="q" name="q" results="0" tabindex="1" type="text" value="" title="Search" placeholder="Search" class="inputtext typeahead_placeholder" maxlength="100" size="25" autocomplete="off" onfocus="return wait_for_load(this, event, function() { var typeahead_source_instance2 = new search_friend_source(&quot;1324118609-1243863246-3&amp;u=1324118609&quot;);typeahead_source_instance2.text_nomatch;typeahead_source_instance2.udata={&quot;u&quot;:1324118609,&quot;src&quot;:&quot;search_friend_source&quot;,&quot;abt&quot;:&quot;A&quot;};typeahead_source_instance2.search_limit=5;typeahead_source_instance2.history=new UserHistory(&quot;1324118609&quot;);new search_typeaheadpro(this, typeahead_source_instance2,{onselect:search_typeahead_onselect,onsubmit:search_typeahead_onsubmit,udata:{&quot;u&quot;:1324118609,&quot;src&quot;:&quot;search_friend_source&quot;,&quot;abt&quot;:&quot;A&quot;},max_results:5,enableSearchResults:0});this.onfocus(); });" /></div><div id="universal_search_submit"><a onclick="return wait_for_load(this, event, function() { search_gen_sid(&quot;1324118609&quot;);

                              search_validate(&quot;q&quot;) &amp;&amp; $(&quot;universal_search_form&quot;).submit(); return false; });" class="qsearch_button" title="Search Facebook"><span class="search_mag_glass">&nbsp;</span></a></div><input type="hidden" id="init" name="init" value="q" /><input type="hidden" id="sid" name="sid" value="0" /></form>

</div></li><li class="fb_menu" id="fb_menu_logout"><div class="fb_menu_title"><a href="http://www.facebook.com/logout.php?h=eeb0904c1a94dcad56a2981e98290a57&amp;r=id_4a5360d06e1e08390208913&amp;ref=mb">Logout</a></div></li><li class="fb_menu" id="fb_menu_settings"><div class="fb_menu_title"><a href="http://www.facebook.com/editaccount.php?ref=mb">Settings</a></div></li></ul></div></div></div><div id="content" class="fb_content"><div class="UIOneOff_Container"><span id="style_container_for_hidden_boxes" style="display:none">&nbsp;</span><div class="profile_top_wash"><div class="profile_color_bar"><div class="left_column_container"><div id="left_column" class="left_column"><div id="profileimage" class="profileimage can_edit" onmouseover="return wait_for_load(this, event, function() { CSS.removeClass($(&quot;edit_profilepicture&quot;), &quot;hidden_elem&quot;); });" onmouseout="return wait_for_load(this, event, function() { CSS.addClass($(&quot;edit_profilepicture&quot;), &quot;hidden_elem&quot;); });"><a href="/album.php?profile=1&amp;id=85814165780"><img src="http://profile.ak.facebook.com/object3/1534/103/n85814165780_2173.jpg" alt="New England Coffee" id="profile_pic" /></a><a href="#" class="hidden_elem" id="edit_profilepicture" title="Change Picture">Change Picture<span id="edit_profilepicture_icon"></span></a><div class="flyout_menu hidden_elem flyout_menu_18 link_menu" id="profile_picture_flyout"><div class="flyout_menu_header_shadow"><div class="flyout_menu_header clearfix"><div class="flyout_menu_mask"></div><div class="flyout_menu_title">Edit your Profile Picture</div></div></div><div class="flyout_menu_content_shadow"><div class="menu_content"><div class="wrapper"><a href="#" class="icon_link" id="profile_picture_upload" title="Upload a new Profile Picture" onclick="return wait_for_load(this, event, function() { new ProfilePicUploader(&quot;85814165780&quot;).upload(); return false; });">Upload a Picture</a><a href="#" class="icon_link" id="profile_picture_camera" title="Use your webcam to take your Profile Picture" onclick="return wait_for_load(this, event, function() { new ProfilePicUploader(&quot;85814165780&quot;).cameraUpload(); return false; });">Take a Picture</a><a href="/album.php?profile&amp;id=85814165780" class="icon_link" id="profile_picture_album" title="Choose a photo from your Profile Pictures album">Choose from Album</a><a href="#" class="icon_link" id="profile_picture_thumb" title="Click here to edit your Profile Picture&#039;s Thumbnail" onclick="return wait_for_load(this, event, function() { new ProfilePicSquareEditor(&quot;85814165780&quot;, 50, 8); return false; });">Edit Thumbnail</a><a href="#" class="icon_link" id="profile_picture_remove" title="If you want, remove your Profile Picture" onclick="return wait_for_load(this, event, function() { profile_pic_remove(&quot;85814165780&quot;); return false; });">Remove your Picture</a></div></div></div></div></div><div class="profile_actions"><a href="http://www.facebook.com/pages/edit/?id=85814165780" class=" profile_action">Edit Page</a><a href="/inbox/?compose&amp;oid=85814165780" class=" profile_action">Send an Update to Fans</a><a href="http://www.facebook.com/ads/create/?src=fbpg1&amp;fbid=85814165780" class=" profile_action">Promote Page with an Ad</a><a href="#" class=" profile_action profile_actions_more_arrow" onclick="return wait_for_load(this, event, function() { return profile_show_all_profile_actions(&quot;profile_actions&quot;, &quot;profile_action&quot;); });"><span></span>More</a><a href="#" class=" profile_action hidden_elem hidden_action" onclick="return wait_for_load(this, event, function() { SocialGraphManager.init(&quot;FanManager&quot;, &quot;85814165780&quot;).showAddAdminDialog(); return false; });">Add Admins</a><a href="/inbox/readupdates.php?id=85814165780" class=" profile_action hidden_elem hidden_action">View Updates</a><a href="/business/insights/?pages&amp;i=85814165780" class=" profile_action hidden_elem hidden_action">View Insights</a><a href="#" class="individual_class profile_actions_less_arrow hidden_elem profile_action" onclick="return wait_for_load(this, event, function() { return profile_hide_extra_profile_actions(&quot;profile_actions&quot;); });"><span></span>Less</a></div><div id="profile_blurb" class="blurb owner"><div class="blurb_outer"><div class="blurb_inner"><div class="text_wrapper" style="display: block;">Family Coffee Roasters Since 1916</div><a onclick="return wait_for_load(this, event, function() { return false; });" class="edit_link" title="Edit"></a><div class="prompt" style="display: none;"><a onclick="return wait_for_load(this, event, function() { return false; });">Write something about New England Coffee.</a></div><div class="edit" style="display: none;"><textarea cols="23" rows="3" onfocus="return wait_for_load(this, event, function() { if(!this._has_control){new TextAreaControl(this).setMaxLength(250).setAutogrow(true, false).onfocus();this._has_control=true} });" style="overflow:hidden;" id="profile_blurb_textarea" name="profile_blurb_textarea"></textarea></div></div></div></div><div id="basic_info_summary_box" class="box basic_info_summary"><h3 class="box_header"><span>Information</span></h3><div class="inside basic_info_summary_list"><dl class="info"><dt>Founded:</dt><dd>1916 on the corner of Milk and Broad Street in Boston</dd></dl></div><a href="#" class="box_editor"></a><div class="no_info" style="display: none;">No basic information shown.</div><div class="flyout_menu hidden_elem flyout_menu_18" id="flyout_menu_profile_basic_info_editor"><div class="flyout_menu_header_shadow"><div class="flyout_menu_header clearfix"><div class="flyout_menu_mask"></div><div class="flyout_menu_title">Edit Box</div></div></div><div class="flyout_menu_content_shadow"><div class="menu_content"><div class="menu_custom"><a onclick="return wait_for_load(this, event, function() { URI(&quot;http:\/\/www.facebook.com\/pages\/New-England-Coffee\/85814165780?v=info&amp;edit_info=all&quot;).go(); });" class="edit_info item">Edit Information</a></div></div></div></div></div><div id="boxes_left" class="box_column"><div class="box"><h3 class="box_header"><span>Insights</span></h3><h4 class="box_header clearfix"><small><a href="./business/insights/?pages&i=85814165780">See All</a></small></h4><div class="UIInsightsSmall" id="c4a5360d062b2a0797761099"><div class="UIInsightsSmall_BigNums clearfix"><div class="UIInsightsSmall_Quality clearfix UIBigNumber UIBigNumber_Medium"><div class="UIBigNumber_MediumTitle">0</div><div class="UIBigNumber_MediumSide"><div class="UIBigNumber_MediumExtra"><div class="UIStarRating"><img alt=""  class="UIStarRating_Star spritemap_icons sx_icons_star_on" src="http://static.ak.fbcdn.net/images/spacer.gif?8:11"><img alt=""  class="UIStarRating_Star spritemap_icons sx_icons_star_off" src="http://static.ak.fbcdn.net/images/spacer.gif?8:11"><img alt=""  class="UIStarRating_Star spritemap_icons sx_icons_star_off" src="http://static.ak.fbcdn.net/images/spacer.gif?8:11"><img alt=""  class="UIStarRating_Star spritemap_icons sx_icons_star_off" src="http://static.ak.fbcdn.net/images/spacer.gif?8:11"><img alt=""  class="UIStarRating_Star spritemap_icons sx_icons_star_off" src="http://static.ak.fbcdn.net/images/spacer.gif?8:11"></div></div><div class="UIBigNumber_Label">Post Quality</div></div></div><div class="clearfix UIBigNumber UIBigNumber_Medium"><div class="UIBigNumber_MediumTitle">6</div><div class="UIBigNumber_MediumSide"><div class="UIBigNumber_Label UIBigNumber_MediumLabel">Interactions<br />This Week</div></div></div></div><div class="UIInsightsSmall_Lists"></div><div class="UIInsightsSmall_Note">Insights are visible to page admins only.</div></div></div><div id="box_app_2356318349" class="box"><h3 class="box_header"><span>Fans</span></h3><div class="app_custom_content "><h4 class="box_header clearfix"><span>6 of <a href="/s.php?k=100000000004&amp;id=85814165780" onclick="return wait_for_load(this, event, function() { SocialGraphManager.init(&quot;FanManager&quot;, &quot;85814165780&quot;).showBrowseDialog(); return false; });">431 fans</a></span><small><a href="/s.php?k=100000000004&amp;id=85814165780" onclick="return wait_for_load(this, event, function() { SocialGraphManager.init(&quot;FanManager&quot;, &quot;85814165780&quot;).showBrowseDialog(); return false; });">See All</a></small></h4><div id="app_content_2356318349"class="inside app_content_2356318349"><div id="profile_friends_box_inner_content" class="loaded_content"><div class="UIGridRenderer clearfix"><div class="UIGridRenderer_Row clearfix"><div class="UIPortrait_TALL"><a href="http://www.facebook.com/people/Lori-Ricci-Hyde/1333483805" title="Lori Ricci Hyde" rel=""><div class="UIRoundedImage UIRoundedImage_LARGE UIRoundedImage_WHITE"><img src="http://profile.ak.facebook.com/v226/253/120/q1333483805_5364.jpg" alt="Lori Ricci Hyde" class="UIRoundedImage_Image" /><img src="http://static.ak.fbcdn.net/images/ui/UIRoundedImage.png?8:156558" alt="" class="UIRoundedImage_CornersSprite" /></div></a><div class="UIPortrait_Text"><a href="http://www.facebook.com/people/Lori-Ricci-Hyde/1333483805" title="Lori Ricci Hyde" rel="">Lori<wbr /> Ricci<wbr /> Hyde</a></div></div><div class="UIPortrait_TALL"><a href="http://www.facebook.com/people/Anish-Kattukaran/502136844" title="Anish Kattukaran" rel=""><div class="UIRoundedImage UIRoundedImage_LARGE UIRoundedImage_WHITE"><img src="http://profile.ak.facebook.com/v225/476/87/q502136844_3075.jpg" alt="Anish Kattukaran" class="UIRoundedImage_Image" /><img src="http://static.ak.fbcdn.net/images/ui/UIRoundedImage.png?8:156558" alt="" class="UIRoundedImage_CornersSprite" /></div></a><div class="UIPortrait_Text"><a href="http://www.facebook.com/people/Anish-Kattukaran/502136844" title="Anish Kattukaran" rel="">Anish<wbr /><span> Kattukar</span><wbr /><span class="word_break"></span>an</a></div></div><div class="UIGridRenderer_Last UIPortrait_TALL"><a href="http://www.facebook.com/people/Janice-Binder-Julin/1221661181" title="Janice Binder-Julin" rel=""><div class="UIRoundedImage UIRoundedImage_LARGE UIRoundedImage_WHITE"><img src="http://profile.ak.facebook.com/v222/86/95/q1221661181_9708.jpg" alt="Janice Binder-Julin" class="UIRoundedImage_Image" /><img src="http://static.ak.fbcdn.net/images/ui/UIRoundedImage.png?8:156558" alt="" class="UIRoundedImage_CornersSprite" /></div></a><div class="UIPortrait_Text"><a href="http://www.facebook.com/people/Janice-Binder-Julin/1221661181" title="Janice Binder-Julin" rel="">Janice<wbr /><span> Binder-J</span><wbr /><span class="word_break"></span>ulin</a></div></div></div><div class="UIGridRenderer_Row clearfix"><div class="UIPortrait_TALL"><a href="http://www.facebook.com/people/Mike-Deforge/100000002432426" title="Mike Deforge" rel=""><div class="UIRoundedImage UIRoundedImage_LARGE UIRoundedImage_WHITE"><img src="http://profile.ak.facebook.com/v227/1938/30/q100000002432426_9065.jpg" alt="Mike Deforge" class="UIRoundedImage_Image" /><img src="http://static.ak.fbcdn.net/images/ui/UIRoundedImage.png?8:156558" alt="" class="UIRoundedImage_CornersSprite" /></div></a><div class="UIPortrait_Text"><a href="http://www.facebook.com/people/Mike-Deforge/100000002432426" title="Mike Deforge" rel="">Mike<wbr /> Deforge</a></div></div><div class="UIPortrait_TALL"><span href="" title="Erika Kirby" rel=""><div class="UIRoundedImage UIRoundedImage_LARGE UIRoundedImage_WHITE"><img src="http://profile.ak.facebook.com/v228/1187/94/q656228067_7139.jpg" alt="Erika Kirby" class="UIRoundedImage_Image" /><img src="http://static.ak.fbcdn.net/images/ui/UIRoundedImage.png?8:156558" alt="" class="UIRoundedImage_CornersSprite" /></div></span><div class="UIPortrait_Text"><span href="" title="Erika Kirby" rel="">Erika<wbr /> Kirby</span></div></div><div class="UIGridRenderer_Last UIPortrait_TALL"><a href="http://www.facebook.com/people/Mareena-Catheren-Buchor/100000022147420" title="Mareena Catheren Buchor" rel=""><div class="UIRoundedImage UIRoundedImage_LARGE UIRoundedImage_WHITE"><img src="http://profile.ak.facebook.com/profile6/1547/40/q100000022147420_3115.jpg" alt="Mareena Catheren Buchor" class="UIRoundedImage_Image" /><img src="http://static.ak.fbcdn.net/images/ui/UIRoundedImage.png?8:156558" alt="" class="UIRoundedImage_CornersSprite" /></div></a><div class="UIPortrait_Text"><a href="http://www.facebook.com/people/Mareena-Catheren-Buchor/100000022147420" title="Mareena Catheren Buchor" rel="">Mareena<wbr /> Catheren<wbr /> Buchor</a></div></div></div></div></div></div></div></div><div id="boxes_left_moveable"><div id="box_app_6009294086" class="box"><h3 class="box_header"><span>Sign up for the New England Coffee e-Newsletter!</span><a href="#" class="box_editor"></a></h3><div class="app_custom_content "><div id="app_content_6009294086"class="inside app_content_6009294086">
 
 

<form onsubmit="return wait_for_load(this, event, function() { fbjs_sandbox.instances.a6009294086.bootstrap();return fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,6009294086),function(a6009294086_event) {return a6009294086_sbmit_comment_form()},6009294086],new fbjs_event(event)); });" method="post" action="http://www.newenglandcoffee.com/data/formSubmit.asp" id="app6009294086_form_4a5360d00f4e24d39957468"><input type="hidden" name="fb_sig_profile" value="85814165780" /><input type="hidden" name="fb_sig_is_admin" value="1" /><input type="hidden" name="fb_sig_type" value="FOOD_BEVERAGE" /><input type="hidden" name="fb_sig_is_fan" value="0" /><input type="hidden" name="fb_sig_locale" value="en_US" /><input type="hidden" name="fb_sig_in_new_facebook" value="1" /><input type="hidden" name="fb_sig_time" value="1246978256.0604" /><input type="hidden" name="fb_sig_added" value="0" /><input type="hidden" name="fb_sig_page_id" value="85814165780" /><input type="hidden" name="fb_sig_page_added" value="1" /><input type="hidden" name="fb_sig_api_key" value="4388c0c374edd1e6614cb63e3ddcfc72" /><input type="hidden" name="fb_sig_app_id" value="6009294086" /><input type="hidden" name="fb_sig" value="722c973b781c25b8fdad4f8e28988076" />

                 <input name="emailRecipients" type="hidden" value="consumerrelations@necoffeeco.com" id="app6009294086_Hidden7" fbcontext="089f7bc10881" />

    <input type="hidden" name="emailSubject" value="submitted the Newsletter Signup Form" id="app6009294086_Hidden8" fbcontext="089f7bc10881" />

    <input name="replyToField" type="hidden" value="E-Mail Address" id="app6009294086_Hidden9" fbcontext="089f7bc10881" />

    <input name="redirect" type="hidden" value="http://www.newenglandcoffee.com/contact/sign_up_for_our_e-newsletter/thankyou.asp" id="app6009294086_Hidden10" fbcontext="089f7bc10881" />

    <input name="emailFrom" type="hidden" value="consumerrelations@necoffeeco.com" id="app6009294086_Hidden11" fbcontext="089f7bc10881" />

    <input name="formId" type="hidden" value="4" id="app6009294086_Hidden12" fbcontext="089f7bc10881" />
 

	First Name:  <input type="text" name="firstName" id="app6009294086_firstName" maxlength="30" fbcontext="089f7bc10881" /><br /><br />
 

	Last Name:  <input type="text" name="lastName" id="app6009294086_lastName" maxlength="30" fbcontext="089f7bc10881" /><br /><br />

   	Address:  <input type="text" name="address" id="app6009294086_address" maxlength="30" fbcontext="089f7bc10881" /><br /><br />

  	City:  <input type="text" name="city" id="app6009294086_city" maxlength="30" fbcontext="089f7bc10881" /><br /><br />

       State:  

    		<select name="state" id="app6009294086_state" class="content" fbcontext="089f7bc10881">

	                    <option value="">---</option>

		                <option value="AL">AL</option>
 

		                <option value="AK">AK</option>

		                <option value="AZ">AZ</option>

		                <option value="AR">AR</option>

		                <option value="CA">CA</option>

		                <option value="CO">CO</option>

		                <option value="CT">CT</option>
 

		                <option value="DE">DE</option>

		                <option value="DC">DC</option>

		                <option value="FL">FL</option>

		                <option value="GA">GA</option>

		                <option value="HI">HI</option>

		                <option value="ID">ID</option>
 

		                <option value="IL">IL</option>

		                <option value="IN">IN</option>

		                <option value="IA">IA</option>

		                <option value="KS">KS</option>

		                <option value="KY">KY</option>

		                <option value="LA">LA</option>
 

		                <option value="ME">ME</option>

		                <option value="MD">MD</option>

		                <option value="MA">MA</option>

		                <option value="MI">MI</option>

		                <option value="MN">MN</option>

		                <option value="MS">MS</option>
 

		                <option value="MO">MO</option>

		                <option value="MT">MT</option>

		                <option value="NE">NE</option>

		                <option value="NV">NV</option>

		                <option value="NH">NH</option>

		                <option value="NJ">NJ</option>
 

		                <option value="NM">NM</option>

		                <option value="NY">NY</option>

		                <option value="NC">NC</option>

		                <option value="ND">ND</option>

		                <option value="OH">OH</option>

		                <option value="OK">OK</option>
 

		                <option value="OR">OR</option>

		                <option value="PA">PA</option>

		                <option value="RI">RI</option>

		                <option value="SC">SC</option>

		                <option value="SD">SD</option>

		                <option value="TN">TN</option>
 

		                <option value="TX">TX</option>

		                <option value="UT">UT</option>

		                <option value="VT">VT</option>

		                <option value="VA">VA</option>

		                <option value="WA">WA</option>

		                <option value="WV">WV</option>
 

		                <option value="WI">WI</option>

		                <option value="WY">WY</option>

	                </select><br /><br />

    Zip:  <input type="text" name="zip" id="app6009294086_zip" maxlength="30" fbcontext="089f7bc10881" /><br /><br />

    Phone:  <input type="text" name="phone" id="app6009294086_phone" maxlength="30" fbcontext="089f7bc10881" /><br /><br />

    birthday:  

    			<select name="bmonth" class="input_box" id="app6009294086_bmonth" style="width: 117px;" fbcontext="089f7bc10881">
 

                    <option value="">Month

                    <option value="1">January

                    <option value="2">February

                    <option value="3">March

                    <option value="4">April

                    <option value="5">May

                    <option value="6">June

                    <option value="7">July

                    <option value="8">August

                    <option value="9">September

                    <option value="10">October

                    <option value="11">November

                    <option value="12">December

                </option></option></option></option></option></option></option></option></option></option></option></option></option></select>

                <select name="bday" class="input_box" id="app6009294086_bday" style="width: 56px;" fbcontext="089f7bc10881">
 

                    <option value="">Day

                    <option value="1">1

                    <option value="2">2

                    <option value="3">3

                    <option value="4">4

                    <option value="5">5

                    <option value="6">6

                    <option value="7">7

                    <option value="8">8

                    <option value="9">9

                    <option value="10">10

                    <option value="11">11

                    <option value="12">12

                    <option value="13">13

                    <option value="14">14

                    <option value="15">15

                    <option value="16">16

                    <option value="17">17

                    <option value="18">18

                    <option value="19">19

                    <option value="20">20

                    <option value="21">21

                    <option value="22">22

                    <option value="23">23

                    <option value="24">24

                    <option value="25">25

                    <option value="26">26

                    <option value="27">27

                    <option value="28">28

                    <option value="29">29

                    <option value="30">30

                    <option value="31">31

                </option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></select>
 

                <select name="byear" id="app6009294086_byear" class="input_box" style="width: 55px;" fbcontext="089f7bc10881">

                    <option value="">Year</option>

                    <option value="1900">1900</option>

                    <option value="1901">1901</option>

                    <option value="1902">1902</option>

                    <option value="1903">1903</option>
 

                    <option value="1904">1904</option>

                    <option value="1905">1905</option>

                    <option value="1906">1906</option>

                    <option value="1907">1907</option>

                    <option value="1908">1908</option>

                    <option value="1909">1909</option>
 

                    <option value="1910">1910</option>

                    <option value="1911">1911</option>

                    <option value="1912">1912</option>

                    <option value="1913">1913</option>

                    <option value="1914">1914</option>

                    <option value="1915">1915</option>
 

                    <option value="1916">1916</option>

                    <option value="1917">1917</option>

                    <option value="1918">1918</option>

                    <option value="1919">1919</option>

                    <option value="1920">1920</option>

                    <option value="1921">1921</option>
 

                    <option value="1922">1922</option>

                    <option value="1923">1923</option>

                    <option value="1924">1924</option>

                    <option value="1925">1925</option>

                    <option value="1926">1926</option>

                    <option value="1927">1927</option>
 

                    <option value="1928">1928</option>

                    <option value="1929">1929</option>

                    <option value="1930">1930</option>

                    <option value="1931">1931</option>

                    <option value="1932">1932</option>

                    <option value="1933">1933</option>
 

                    <option value="1934">1934</option>

                    <option value="1935">1935</option>

                    <option value="1936">1936</option>

                    <option value="1937">1937</option>

                    <option value="1938">1938</option>

                    <option value="1939">1939</option>
 

                    <option value="1940">1940</option>

                    <option value="1941">1941</option>

                    <option value="1942">1942</option>

                    <option value="1943">1943</option>

                    <option value="1944">1944</option>

                    <option value="1945">1945</option>
 

                    <option value="1946">1946</option>

                    <option value="1947">1947</option>

                    <option value="1948">1948</option>

                    <option value="1949">1949</option>

                    <option value="1950">1950</option>

                    <option value="1951">1951</option>
 

                    <option value="1952">1952</option>

                    <option value="1953">1953</option>

                    <option value="1954">1954</option>

                    <option value="1955">1955</option>

                    <option value="1956">1956</option>

                    <option value="1957">1957</option>
 

                    <option value="1958">1958</option>

                    <option value="1959">1959</option>

                    <option value="1960">1960</option>

                    <option value="1961">1961</option>

                    <option value="1962">1962</option>

                    <option value="1963">1963</option>
 

                    <option value="1964">1964</option>

                    <option value="1965">1965</option>

                    <option value="1966">1966</option>

                    <option value="1967">1967</option>

                    <option value="1968">1968</option>

                    <option value="1969">1969</option>
 

                    <option value="1970">1970</option>

                    <option value="1971">1971</option>

                    <option value="1972">1972</option>

                    <option value="1973">1973</option>

                    <option value="1974">1974</option>

                    <option value="1975">1975</option>
 

                    <option value="1976">1976</option>

                    <option value="1977">1977</option>

                    <option value="1978">1978</option>

                    <option value="1979">1979</option>

                    <option value="1980">1980</option>

                    <option value="1981">1981</option>
 

                    <option value="1982">1982</option>

                    <option value="1983">1983</option>

                    <option value="1984">1984</option>

                    <option value="1985">1985</option>

                    <option value="1986">1986</option>

                    <option value="1987">1987</option>
 

                    <option value="1988">1988</option>

                    <option value="1989">1989</option>

                    <option value="1990">1990</option>

                    <option value="1991">1991</option>

                    <option value="1992">1992</option>

                    <option value="1993">1993</option>
 

                    <option value="1994">1994</option>

                    <option value="1995">1995</option>

                    <option value="1996">1996</option>

                    <option value="1997">1997</option>

                    <option value="1998">1998</option>

                    <option value="1999">1999</option>
 

                    <option value="2000">2000</option>

             </select><br /><br />

    E-mail:  <input type="text" name="email" id="app6009294086_email" maxlength="30" fbcontext="089f7bc10881" /><br /><br />

    Re-enter E-mail:  <input type="text" name="email2" id="app6009294086_email2" maxlength="30" fbcontext="089f7bc10881" /><br /><br />

    <input type="submit" name="submit" value="Submit" />

</form>
 

</div></div></div><div id="box_app_7146470109" class="box"><h3 class="box_header"><span>Snap a Shot get a Glass!</span><a href="#" class="box_editor"></a></h3><div class="app_custom_content "><div id="app_content_7146470109"class="inside app_content_7146470109"><a href="http://www.newenglandcoffee.com/who/coffee_stories/share_your_snapshot/index.asp" onclick="return wait_for_load(this, event, function() { (new Image()).src = &#039;/ajax/ct.php?app_id=7146470109&amp;action_type=3&amp;post_form_id=3624f9eeff7b2aaac4f3640ae3e09404&amp;position=2&amp;&#039; + Math.random();return true; });"><img src="http://www.newenglandcoffee.com/facebook/Facebook_snapshot.jpg" border="0" /></a></div></div></div><div id="box_app_2305272732" class="box"><h3 class="box_header"><span>Photos</span><a href="#" class="box_editor"></a></h3><div class="app_custom_content "><h4 class="box_header clearfix"><span>2 of <a href="http://www.facebook.com/pages/New-England-Coffee/85814165780?v=photos">5 albums</a></span><small><a href="http://www.facebook.com/pages/New-England-Coffee/85814165780?v=photos" onclick="return wait_for_load(this, event, function() {  });">See All</a></small></h4><div id="app_content_2305272732"class="inside app_content_2305272732"><div id="photos_box" class="clearfix"><div class="album"><div class="thumbnail"><a href="http://www.facebook.com/album.php?aid=124349&amp;id=85814165780"><img src="http://photos-g.ak.fbcdn.net/hphotos-ak-snc1/hs005.snc1/4161_99968775780_85814165780_3106942_7767619_t.jpg" alt="" class="image" /></a></div><div class="desc"><strong><a href="http://www.facebook.com/album.php?aid=124349&amp;id=85814165780">Try Me Iced - ON TOUR!</a></strong><span class="date">Updated about a week ago</span></div></div><div class="album"><div class="thumbnail"><a href="http://www.facebook.com/album.php?aid=123906&amp;id=85814165780"><img src="http://photos-c.ak.fbcdn.net/hphotos-ak-snc1/hs008.snc1/4442_99183225780_85814165780_3093890_8125840_t.jpg" alt="" class="image" /></a></div><div class="desc"><strong><a href="http://www.facebook.com/album.php?aid=123906&amp;id=85814165780">17th Annual Charity Golf Classic - May 11, 2009</a></strong><span class="date">Updated about a month ago</span></div></div></div></div></div><div class="app_custom_content "><h4 class="box_header clearfix"><span><a href="http://www.facebook.com/pages/New-England-Coffee/85814165780?v=photos">2 fan photos</a></span><small><a href="http://www.facebook.com/pages/New-England-Coffee/85814165780?v=photos" onclick="return wait_for_load(this, event, function() {  });">See All</a></small></h4><div id="app_content_2305272732"class="inside app_content_2305272732"><div class="fan_photos content"><table class="fan_table" cellspacing="0" border="0" height="100%"><tr><td><table height="100%"><tr><td class="image" height="100%"><a href="/photo.php?pid=30428088&amp;o=all&amp;op=1&amp;view=all&amp;subj=85814165780&amp;aid=-1&amp;id=1492779775&amp;oid=85814165780"><img src="http://photos-a.ak.fbcdn.net/hphotos-ak-snc1/hs104.snc1/5032_1166587653520_1492779775_30428088_3625908_t.jpg" alt="" class="fan_photo" /></a></td></tr></table></td><td><table height="100%"><tr><td class="image" height="100%"><a href="/photo.php?pid=441856&amp;o=all&amp;op=1&amp;view=all&amp;subj=85814165780&amp;aid=-1&amp;id=1362290733&amp;oid=85814165780"><img src="http://photos-a.ak.fbcdn.net/hphotos-ak-snc1/hs106.snc1/4905_1164477636421_1362290733_441856_8280812_t.jpg" alt="" class="fan_photo" /></a></td></tr></table></td></tr><tr><td></td><td></td></tr></table></div></div></div></div></div></div><div class="actions secondary_actions"><a href="/pages/create.php" class=" action">Create a Page for My Business</a></div></div></div><div id="profile_top_bar" class="top_bar"><a href="http://www.facebook.com/pages/New-England-Coffee/85814165780?v=wall&amp;viewas=1324118609" class="top_bar_pic" id="top_bar_pic"><div class="UIRoundedImage UIRoundedImage_LARGE UIRoundedImage_GIRLIE"><img src="http://profile.ak.facebook.com/object3/1534/103/q85814165780_2173.jpg" alt="" class="UIRoundedImage_Image" /><img src="http://static.ak.fbcdn.net/images/ui/UIRoundedImage.png?8:156558" alt="" class="UIRoundedImage_CornersSprite" /></div></a><div class="profile_top_bar_container"><div class="profile_name_and_status"><h1 id="profile_name">New England Coffee</h1><div class="mobile_status"><span id="profile_status" class="hidden_elem"><span id="status_text"> </span><small><span id="status_time"><span id="status_time_inner"> </span> <a onclick="return wait_for_load(this, event, function() { ProfileStream.clearStatus(&quot;85814165780&quot;);return false; });" class="status_edit">clear</a></span></small></span></div></div><div class="tabs_wrapper clearfix"><ul id="profile_tabs" class="tabs"><li view="wall"><a href="http://www.facebook.com/pages/New-England-Coffee/85814165780?v=wall&amp;viewas=1324118609" class="tab_link profile_tab"><div class="app_tab_header"><div class="app_tab_icon" >&nbsp;</div><div class="app_tab_title">Wall</div></div></a></li><li view="info"><a href="http://www.facebook.com/pages/New-England-Coffee/85814165780?v=info&amp;viewas=1324118609" class="tab_link profile_tab"><div class="app_tab_header"><div class="app_tab_icon" >&nbsp;</div><div class="app_tab_title">Info</div></div></a></li><li view="photos"><a href="http://www.facebook.com/pages/New-England-Coffee/85814165780?v=photos&amp;viewas=1324118609" class="tab_link profile_tab has_edit"><div class="app_tab_header"><div class="app_tab_icon" style="background-image: url(http://static.ak.fbcdn.net/images/app_icons/photo.gif?8:39263)">&nbsp;</div><div class="app_tab_title">Photos</div></div></a><a class="edit" href="#">&nbsp;</a></li><li view="box_3"><a href="http://www.facebook.com/pages/New-England-Coffee/85814165780?v=box_3&amp;viewas=1324118609" class="tab_link profile_tab"><div class="app_tab_header"><div class="app_tab_icon" style="background-image: url(/images/app_icons/hidden.gif)">&nbsp;</div><div class="app_tab_title">Boxes</div></div></a></li><li view="app_2344061033"><a href="http://www.facebook.com/pages/New-England-Coffee/85814165780?v=app_2344061033&amp;viewas=1324118609" class="tab_link profile_tab has_edit"><div class="app_tab_header"><div class="app_tab_icon" style="background-image: url(http://static.ak.fbcdn.net/images/app_icons/event.gif?8:39263)">&nbsp;</div><div class="app_tab_title">Events</div></div></a><a class="edit" href="#">&nbsp;</a></li><li class="selected" view="app_6009294086"><a href="http://www.facebook.com/pages/New-England-Coffee/85814165780?v=app_6009294086&amp;viewas=1324118609" class="tab_link profile_tab has_edit"><div class="app_tab_header"><div class="app_tab_icon" style="background-image: url(http://photos-g.ak.fbcdn.net/photos-ak-sf2p/v43/26/6009294086/app_4_6009294086_3.gif)">&nbsp;</div><div class="app_tab_title">Sign up for...</div></div></a><a class="edit" href="#">&nbsp;</a></li><li class="profile_tab_more hidden_elem" id="profile_tab_more"><a href="#" class="tab_link"></a><div class="dropdown_menu hidden_elem link_menu_list" id="menu_tab_more"><div class="dropdown_menu_header_shadow"><div class="menu_content"><div class="tabs_more_menu" id="tabs_more_menu"><ul></ul></div></div></div></div></li><li class="add_tab" id="profile_tab_add"><a href="#" class="tab_link"></a><div class="flyout_menu hidden_elem link_menu" id="flyout_menu_profile_add_tab"><div class="flyout_menu_header_shadow"><div class="flyout_menu_header clearfix"><div class="flyout_menu_mask"></div><div class="flyout_menu_title">Add a new tab</div></div></div><div class="flyout_menu_content_shadow"><div class="menu_content"><div class="add_tab_apps_list"><a href="#" onclick="return wait_for_load(this, event, function() { tab_controller.addNewTab(this, &quot;2347471856&quot;, &quot;Notes&quot;); return false; });" class="clearfix " id="new_tab_2347471856"><div class="add_tab_app_item"><div class="add_tab_apps_list_icon" style="background-image: url(http://static.ak.fbcdn.net/images/app_icons/note.gif?8:39263);"></div><div class="add_tab_apps_list_name">Notes</div></div></a><a href="#" onclick="return wait_for_load(this, event, function() { tab_controller.addNewTab(this, &quot;2392950137&quot;, &quot;Video&quot;); return false; });" class="clearfix " id="new_tab_2392950137"><div class="add_tab_app_item"><div class="add_tab_apps_list_icon" style="background-image: url(http://b.static.ak.fbcdn.net/images/app_icons/motion.gif?8:49123);"></div><div class="add_tab_apps_list_name">Video</div></div></a><a href="#" onclick="return wait_for_load(this, event, function() { tab_controller.addNewTab(this, &quot;2373072738&quot;, &quot;Discussions&quot;); return false; });" class="clearfix " id="new_tab_2373072738"><div class="add_tab_app_item"><div class="add_tab_apps_list_icon" style="background-image: url(http://photos-c.ak.fbcdn.net/photos-ak-sf2p/v43/78/2373072738/app_4_2373072738_5497.gif);"></div><div class="add_tab_apps_list_name">Discussions</div></div></a><a href="#" onclick="return wait_for_load(this, event, function() { tab_controller.addNewTab(this, &quot;7146470109&quot;, &quot;Snap a Shot get a Glass!&quot;); return false; });" class="clearfix " id="new_tab_7146470109"><div class="add_tab_app_item"><div class="add_tab_apps_list_icon" style="background-image: url(http://photos-f.ak.fbcdn.net/photos-ak-sf2p/v43/93/7146470109/app_4_7146470109_1769.gif);"></div><div class="add_tab_apps_list_name">Snap a Shot get a Glass!</div></div></a><a href="#" onclick="return wait_for_load(this, event, function() { tab_controller.addNewTab(this, &quot;4949752878&quot;, &quot;Try Me Iced - Simple Home Brewing and Coupons!&quot;); return false; });" class="clearfix " id="new_tab_4949752878"><div class="add_tab_app_item"><div class="add_tab_apps_list_icon" style="background-image: url(http://photos-g.ak.fbcdn.net/photos-ak-sf2p/v43/126/4949752878/app_4_4949752878_8942.gif);"></div><div class="add_tab_apps_list_name">Try Me Iced - Simple Home Brewing and Coupons!</div></div></a><a href="#" onclick="return wait_for_load(this, event, function() { tab_controller.addNewTab(this, &quot;10442206389&quot;, &quot;Snap A shot and get a Glass!&quot;); return false; });" class="clearfix " id="new_tab_10442206389"><div class="add_tab_app_item"><div class="add_tab_apps_list_icon" style="background-image: url(http://b.static.ak.fbcdn.net/images/app_icons/hidden.gif?8:54829);"></div><div class="add_tab_apps_list_name">Snap A shot and get a Glass!</div></div></a><div class="add_tab_app_item add_tab_app_typeahead"><div class="add_tab_apps_list_title">Search available tabs:</div><input class="inputtext typeahead_placeholder" maxlength="100" size="25" autocomplete="off" type="input" onfocus="return wait_for_load(this, event, function() { var typeahead_source_instance1 = new app_source(&quot;{\&quot;added_apps\&quot;:[\&quot;Wall\&quot;,\&quot;Info\&quot;,\&quot;Photos\&quot;,\&quot;Boxes\&quot;,\&quot;Events\&quot;,\&quot;Sign up for the New England Coffee e-Newsletter!\&quot;],\&quot;searchable_apps\&quot;:[{\&quot;a\&quot;:\&quot;Notes\&quot;,\&quot;t\&quot;:\&quot;Notes\&quot;,\&quot;i\&quot;:2347471856,\&quot;it\&quot;:\&quot;http:\\\/\\\/static.ak.fbcdn.net\\\/images\\\/app_icons\\\/note.gif?8:39263\&quot;},{\&quot;a\&quot;:\&quot;Video\&quot;,\&quot;t\&quot;:\&quot;Video\&quot;,\&quot;i\&quot;:2392950137,\&quot;it\&quot;:\&quot;http:\\\/\\\/b.static.ak.fbcdn.net\\\/images\\\/app_icons\\\/motion.gif?8:49123\&quot;},{\&quot;a\&quot;:\&quot;Discussions\&quot;,\&quot;t\&quot;:\&quot;Discussion Boards\&quot;,\&quot;i\&quot;:2373072738,\&quot;it\&quot;:\&quot;http:\\\/\\\/photos-c.ak.fbcdn.net\\\/photos-ak-sf2p\\\/v43\\\/78\\\/2373072738\\\/app_4_2373072738_5497.gif\&quot;},{\&quot;a\&quot;:\&quot;Snap a Shot get a Glass!\&quot;,\&quot;t\&quot;:\&quot;Static FBML 2\&quot;,\&quot;i\&quot;:7146470109,\&quot;it\&quot;:\&quot;http:\\\/\\\/photos-f.ak.fbcdn.net\\\/photos-ak-sf2p\\\/v43\\\/93\\\/7146470109\\\/app_4_7146470109_1769.gif\&quot;},{\&quot;a\&quot;:\&quot;Try Me Iced - Simple Home Brewing and Coupons!\&quot;,\&quot;t\&quot;:\&quot;Static FBML\&quot;,\&quot;i\&quot;:4949752878,\&quot;it\&quot;:\&quot;http:\\\/\\\/photos-g.ak.fbcdn.net\\\/photos-ak-sf2p\\\/v43\\\/126\\\/4949752878\\\/app_4_4949752878_8942.gif\&quot;},{\&quot;a\&quot;:\&quot;Snap A shot and get a Glass!\&quot;,\&quot;t\&quot;:\&quot;Static FBML 4\&quot;,\&quot;i\&quot;:10442206389,\&quot;it\&quot;:\&quot;http:\\\/\\\/b.static.ak.fbcdn.net\\\/images\\\/app_icons\\\/hidden.gif?8:54829\&quot;}]}&quot;);typeahead_source_instance1.text_placeholder=&#039;Enter an application that you have used&#039;;typeahead_source_instance1.to;typeahead_source_instance1.locked;new typeaheadpro(this, typeahead_source_instance1,{onselect:function (sel){if (!sel) {return false;}tab_controller.addNewTab(null, sel.i, sel.a);this.clear();},onsubmit:function(){return false;},ignore_invalid_suggestion:1});this.onfocus(); });" /></div></div></div></div></div></li></ul></div></div></div></div></div><div id="tab_content" class="tab_content profile_bottom_wash"><div class="profile_bottom_container"><div class="right_column_container clearfix"><div class="profile_sidebar_ads"><div><div id="sidebar_ads"><div class="adcolumn_wrapper"><div class="adcolumn"><div class="adcolumn_header" id="adcolumn_advertise"><a href="http://www.facebook.com/advertising/?src=advf2">Advertise</a></div><div id="ssponsor" class="sponsors"><div class="admarket_ad" id="adspace_ad_0"><a href="/pages/?ref=asf" class="ad_story ad_clickable"><div class="social_ad_advert"><h2>Facebook Pages</h2><div class="social_ad_image"><img src="http://creative.ak.facebook.com/ads3/flyers/121/42/6002276267807_1_46745936.jpg" alt="" /></div><div class="social_ad_advert_text">Facebook Pages help you discover new artists, businesses, and brands as well as connect with those you already love.</div></div></a></div></div><a href="http://www.facebook.com/ads/adboard/" class="more_ads" id="adcolumn_more_ads">More Ads</a></div></div></div></div></div><div id="right_column" class="right_column"><div id="tab_canvas"><div><div id="app_content_6009294086" class="app_tab app_content_6009294086"><div>
 
 

<form onsubmit="return wait_for_load(this, event, function() { fbjs_sandbox.instances.a6009294086.bootstrap();return fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,6009294086),function(a6009294086_event) {return a6009294086_sbmit_comment_form()},6009294086],new fbjs_event(event)); });" method="post" action="http://www.newenglandcoffee.com/data/formSubmit.asp" id="app6009294086_form_4a5360d0693f98b23511610"><input type="hidden" name="fb_sig_profile" value="85814165780" /><input type="hidden" name="fb_sig_is_admin" value="1" /><input type="hidden" name="fb_sig_type" value="FOOD_BEVERAGE" /><input type="hidden" name="fb_sig_is_fan" value="0" /><input type="hidden" name="fb_sig_locale" value="en_US" /><input type="hidden" name="fb_sig_in_new_facebook" value="1" /><input type="hidden" name="fb_sig_time" value="1246978256.4298" /><input type="hidden" name="fb_sig_added" value="0" /><input type="hidden" name="fb_sig_page_id" value="85814165780" /><input type="hidden" name="fb_sig_page_added" value="1" /><input type="hidden" name="fb_sig_api_key" value="4388c0c374edd1e6614cb63e3ddcfc72" /><input type="hidden" name="fb_sig_app_id" value="6009294086" /><input type="hidden" name="fb_sig" value="070465dc0fc3c82931cb314245b45a92" />

                 <input name="emailRecipients" type="hidden" value="consumerrelations@necoffeeco.com" id="app6009294086_Hidden7" fbcontext="adcef5cc0327" />

    <input type="hidden" name="emailSubject" value="submitted the Newsletter Signup Form" id="app6009294086_Hidden8" fbcontext="adcef5cc0327" />

    <input name="replyToField" type="hidden" value="E-Mail Address" id="app6009294086_Hidden9" fbcontext="adcef5cc0327" />

    <input name="redirect" type="hidden" value="http://www.newenglandcoffee.com/contact/sign_up_for_our_e-newsletter/thankyou.asp" id="app6009294086_Hidden10" fbcontext="adcef5cc0327" />

    <input name="emailFrom" type="hidden" value="consumerrelations@necoffeeco.com" id="app6009294086_Hidden11" fbcontext="adcef5cc0327" />

    <input name="formId" type="hidden" value="4" id="app6009294086_Hidden12" fbcontext="adcef5cc0327" />
 

	First Name:  <input type="text" name="firstName" id="app6009294086_firstName" maxlength="30" fbcontext="adcef5cc0327" /><br /><br />
 

	Last Name:  <input type="text" name="lastName" id="app6009294086_lastName" maxlength="30" fbcontext="adcef5cc0327" /><br /><br />

   	Address:  <input type="text" name="address" id="app6009294086_address" maxlength="30" fbcontext="adcef5cc0327" /><br /><br />

  	City:  <input type="text" name="city" id="app6009294086_city" maxlength="30" fbcontext="adcef5cc0327" /><br /><br />

       State:  

    		<select name="state" id="app6009294086_state" class="content" fbcontext="adcef5cc0327">

	                    <option value="">---</option>

		                <option value="AL">AL</option>
 

		                <option value="AK">AK</option>

		                <option value="AZ">AZ</option>

		                <option value="AR">AR</option>

		                <option value="CA">CA</option>

		                <option value="CO">CO</option>

		                <option value="CT">CT</option>
 

		                <option value="DE">DE</option>

		                <option value="DC">DC</option>

		                <option value="FL">FL</option>

		                <option value="GA">GA</option>

		                <option value="HI">HI</option>

		                <option value="ID">ID</option>
 

		                <option value="IL">IL</option>

		                <option value="IN">IN</option>

		                <option value="IA">IA</option>

		                <option value="KS">KS</option>

		                <option value="KY">KY</option>

		                <option value="LA">LA</option>
 

		                <option value="ME">ME</option>

		                <option value="MD">MD</option>

		                <option value="MA">MA</option>

		                <option value="MI">MI</option>

		                <option value="MN">MN</option>

		                <option value="MS">MS</option>
 

		                <option value="MO">MO</option>

		                <option value="MT">MT</option>

		                <option value="NE">NE</option>

		                <option value="NV">NV</option>

		                <option value="NH">NH</option>

		                <option value="NJ">NJ</option>
 

		                <option value="NM">NM</option>

		                <option value="NY">NY</option>

		                <option value="NC">NC</option>

		                <option value="ND">ND</option>

		                <option value="OH">OH</option>

		                <option value="OK">OK</option>
 

		                <option value="OR">OR</option>

		                <option value="PA">PA</option>

		                <option value="RI">RI</option>

		                <option value="SC">SC</option>

		                <option value="SD">SD</option>

		                <option value="TN">TN</option>
 

		                <option value="TX">TX</option>

		                <option value="UT">UT</option>

		                <option value="VT">VT</option>

		                <option value="VA">VA</option>

		                <option value="WA">WA</option>

		                <option value="WV">WV</option>
 

		                <option value="WI">WI</option>

		                <option value="WY">WY</option>

	                </select><br /><br />

    Zip:  <input type="text" name="zip" id="app6009294086_zip" maxlength="30" fbcontext="adcef5cc0327" /><br /><br />

    Phone:  <input type="text" name="phone" id="app6009294086_phone" maxlength="30" fbcontext="adcef5cc0327" /><br /><br />

    birthday:  

    			<select name="bmonth" class="input_box" id="app6009294086_bmonth" style="width: 117px;" fbcontext="adcef5cc0327">
 

                    <option value="">Month

                    <option value="1">January

                    <option value="2">February

                    <option value="3">March

                    <option value="4">April

                    <option value="5">May

                    <option value="6">June

                    <option value="7">July

                    <option value="8">August

                    <option value="9">September

                    <option value="10">October

                    <option value="11">November

                    <option value="12">December

                </option></option></option></option></option></option></option></option></option></option></option></option></option></select>

                <select name="bday" class="input_box" id="app6009294086_bday" style="width: 56px;" fbcontext="adcef5cc0327">
 

                    <option value="">Day

                    <option value="1">1

                    <option value="2">2

                    <option value="3">3

                    <option value="4">4

                    <option value="5">5

                    <option value="6">6

                    <option value="7">7

                    <option value="8">8

                    <option value="9">9

                    <option value="10">10

                    <option value="11">11

                    <option value="12">12

                    <option value="13">13

                    <option value="14">14

                    <option value="15">15

                    <option value="16">16

                    <option value="17">17

                    <option value="18">18

                    <option value="19">19

                    <option value="20">20

                    <option value="21">21

                    <option value="22">22

                    <option value="23">23

                    <option value="24">24

                    <option value="25">25

                    <option value="26">26

                    <option value="27">27

                    <option value="28">28

                    <option value="29">29

                    <option value="30">30

                    <option value="31">31

                </option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></option></select>
 

                <select name="byear" id="app6009294086_byear" class="input_box" style="width: 55px;" fbcontext="adcef5cc0327">

                    <option value="">Year</option>

                    <option value="1900">1900</option>

                    <option value="1901">1901</option>

                    <option value="1902">1902</option>

                    <option value="1903">1903</option>
 

                    <option value="1904">1904</option>

                    <option value="1905">1905</option>

                    <option value="1906">1906</option>

                    <option value="1907">1907</option>

                    <option value="1908">1908</option>

                    <option value="1909">1909</option>
 

                    <option value="1910">1910</option>

                    <option value="1911">1911</option>

                    <option value="1912">1912</option>

                    <option value="1913">1913</option>

                    <option value="1914">1914</option>

                    <option value="1915">1915</option>
 

                    <option value="1916">1916</option>

                    <option value="1917">1917</option>

                    <option value="1918">1918</option>

                    <option value="1919">1919</option>

                    <option value="1920">1920</option>

                    <option value="1921">1921</option>
 

                    <option value="1922">1922</option>

                    <option value="1923">1923</option>

                    <option value="1924">1924</option>

                    <option value="1925">1925</option>

                    <option value="1926">1926</option>

                    <option value="1927">1927</option>
 

                    <option value="1928">1928</option>

                    <option value="1929">1929</option>

                    <option value="1930">1930</option>

                    <option value="1931">1931</option>

                    <option value="1932">1932</option>

                    <option value="1933">1933</option>
 

                    <option value="1934">1934</option>

                    <option value="1935">1935</option>

                    <option value="1936">1936</option>

                    <option value="1937">1937</option>

                    <option value="1938">1938</option>

                    <option value="1939">1939</option>
 

                    <option value="1940">1940</option>

                    <option value="1941">1941</option>

                    <option value="1942">1942</option>

                    <option value="1943">1943</option>

                    <option value="1944">1944</option>

                    <option value="1945">1945</option>
 

                    <option value="1946">1946</option>

                    <option value="1947">1947</option>

                    <option value="1948">1948</option>

                    <option value="1949">1949</option>

                    <option value="1950">1950</option>

                    <option value="1951">1951</option>
 

                    <option value="1952">1952</option>

                    <option value="1953">1953</option>

                    <option value="1954">1954</option>

                    <option value="1955">1955</option>

                    <option value="1956">1956</option>

                    <option value="1957">1957</option>
 

                    <option value="1958">1958</option>

                    <option value="1959">1959</option>

                    <option value="1960">1960</option>

                    <option value="1961">1961</option>

                    <option value="1962">1962</option>

                    <option value="1963">1963</option>
 

                    <option value="1964">1964</option>

                    <option value="1965">1965</option>

                    <option value="1966">1966</option>

                    <option value="1967">1967</option>

                    <option value="1968">1968</option>

                    <option value="1969">1969</option>
 

                    <option value="1970">1970</option>

                    <option value="1971">1971</option>

                    <option value="1972">1972</option>

                    <option value="1973">1973</option>

                    <option value="1974">1974</option>

                    <option value="1975">1975</option>
 

                    <option value="1976">1976</option>

                    <option value="1977">1977</option>

                    <option value="1978">1978</option>

                    <option value="1979">1979</option>

                    <option value="1980">1980</option>

                    <option value="1981">1981</option>
 

                    <option value="1982">1982</option>

                    <option value="1983">1983</option>

                    <option value="1984">1984</option>

                    <option value="1985">1985</option>

                    <option value="1986">1986</option>

                    <option value="1987">1987</option>
 

                    <option value="1988">1988</option>

                    <option value="1989">1989</option>

                    <option value="1990">1990</option>

                    <option value="1991">1991</option>

                    <option value="1992">1992</option>

                    <option value="1993">1993</option>
 

                    <option value="1994">1994</option>

                    <option value="1995">1995</option>

                    <option value="1996">1996</option>

                    <option value="1997">1997</option>

                    <option value="1998">1998</option>

                    <option value="1999">1999</option>
 

                    <option value="2000">2000</option>

             </select><br /><br />

    E-mail:  <input type="text" name="email" id="app6009294086_email" maxlength="30" fbcontext="adcef5cc0327" /><br /><br />

    Re-enter E-mail:  <input type="text" name="email2" id="app6009294086_email2" maxlength="30" fbcontext="adcef5cc0327" /><br /><br />

    <input type="submit" name="submit" value="Submit" />

</form>
 

</div></div></div></div></div></div></div></div></div></div></div></div><div id="pagefooter"><div class="pagefooter_topborder clearfix"><div class="copyright_and_location clearfix"><div class="copyright" id="pagefooter_copyright"><span title="PHP">Facebook </span><span id="rtime" title="601">&copy;</span> <span title="10.22.120.117">20</span><span title="25458272">09</span></div><div id="locale_selector_dialog_onclick"><a onclick="return wait_for_load(this, event, function() { intl_locale_selector_dialog(&quot;http:\/\/www.facebook.com\/pages\/New-England-Coffee\/85814165780?v=app_6009294086&amp;viewas=1324118609&quot;); });" title="English (US)">English (US)</a></div></div><div id="pagefooter_links"><ul id="pagefooter_left_links"><li><a href="http://www.facebook.com/facebook?ref=pf" accesskey="7" rel="nofollow">About</a></li><li><a href="http://www.facebook.com/advertising/?src=pf">Advertising</a></li><li><a href="http://developers.facebook.com/?ref=pf">Developers</a></li><li><a href="http://www.facebook.com/careers/?ref=pf">Careers</a></li><li><a href="http://www.facebook.com/terms.php?ref=pf" accesskey="8" rel="nofollow">Terms</a></li><li><span><img alt=""  class="li_bullet spritemap_icons sx_icons_pagefooter_bullet" src="http://static.ak.fbcdn.net/images/spacer.gif?8:11"></span></li></ul><ul id="pagefooter_right_links"><li><a href="http://www.facebook.com/policy.php?ref=pf" accesskey="6" rel="nofollow">Privacy</a></li><li><a href="http://www.facebook.com/mobile/?ref=pf" accesskey="5">Mobile</a></li><li><a href="http://www.facebook.com/help.php?ref=pf" accesskey="0" rel="nofollow">Help Center</a></li></ul></div></div></div><div id="js_buffer"><script type="text/javascript">
 

onloadRegister(function(){Bootloader.configurePage({"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zELBW\/lpkg\/708onpvg\/en_US\/141\/171359\/css\/yty641oj1jk8sc8k.pkg.css":["css\/yty641oj1jk8sc8k.pkg.css",true],"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zDT2V\/lpkg\/aarmz04m\/en_US\/141\/146691\/css\/1lfvk7usbr1cosoo.pkg.css":["css\/1lfvk7usbr1cosoo.pkg.css",false],"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zAVY0\/lpkg\/2wedcip1\/en_US\/141\/169419\/css\/dyvbngp9u7sw0gks.pkg.css":["css\/dyvbngp9u7sw0gks.pkg.css",false],"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zBK5V\/lpkg\/6rouxcck\/en_US\/141\/167831\/css\/5q2g5ub7v3sw08wc.pkg.css":["css\/5q2g5ub7v3sw08wc.pkg.css",false],"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z52ST\/lpkg\/h196rmfd\/en_US\/141\/170216\/css\/ecdcd75owtckk4wc.pkg.css":["css\/ecdcd75owtckk4wc.pkg.css",false],"http:\/\/static.ak.fbcdn.net\/rsrc.php\/zDYD5\/lpkg\/6xwxw85e\/en_US\/141\/171688\/css\/59hqerh7kvc4ooc8.pkg.css":["css\/59hqerh7kvc4ooc8.pkg.css",false],"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z6U33\/l\/8camqfuh\/en_US\/171688\/css\/nux_highlight.css":["css\/nux_highlight.css",false],"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/z3PUQ\/lpkg\/en5tepv1\/en_US\/141\/163776\/css\/8h8wx2il930gs8ko.pkg.css":["css\/8h8wx2il930gs8ko.pkg.css",false],"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zCGE4\/l\/b62mro93\/en_US\/172172\/css\/insights\/UIInsightsSmall.css":["css\/insights\/UIInsightsSmall.css",false],"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zB7EK\/lpkg\/79mhohu6\/en_US\/141\/172202\/css\/99fcdapv59ooo8kg.pkg.css":["css\/99fcdapv59ooo8kg.pkg.css",false],"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z6T70\/lpkg\/ar06q0xo\/en_US\/141\/170837\/css\/8jlnn6i0f8kkks4k.pkg.css":["css\/8jlnn6i0f8kkks4k.pkg.css",true],"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/z7S9Y\/lpkg\/8rlx5j7l\/en_US\/141\/171780\/css\/diud0bkiqvscc4sg.pkg.css":["css\/diud0bkiqvscc4sg.pkg.css",true]});

Bootloader.done(["css\/yty641oj1jk8sc8k.pkg.css","css\/1lfvk7usbr1cosoo.pkg.css","css\/dyvbngp9u7sw0gks.pkg.css","css\/5q2g5ub7v3sw08wc.pkg.css","css\/ecdcd75owtckk4wc.pkg.css","css\/59hqerh7kvc4ooc8.pkg.css","css\/nux_highlight.css","css\/8h8wx2il930gs8ko.pkg.css","css\/insights\/UIInsightsSmall.css","css\/99fcdapv59ooo8kg.pkg.css","css\/8jlnn6i0f8kkks4k.pkg.css","css\/diud0bkiqvscc4sg.pkg.css"]);

});
 

onloadRegister(function (){Quickling.init("172773;0", 20, {"page_cache":1,"quickling_init_page":false,"domain_rewrite":1,"full_platform":0,"flush_cache_in_transition":1,"flush_cache_in_page_write":0,"quickling_prefetch":0}, {});;});

onloadRegister(function (){if (window.Env) { Env["nctrlid"]="36f9846d96bf343285767a649f8fbf59"; };});

onloadRegister(function (){if (window.Env) { Env["nctrlnid"]=""; };});

onloadRegister(function (){if (window.NectarPhotosLog) {

          Arbiter.subscribe(NectarPhotosLog.NECTAR_LOG,

            NectarPhotosLog.arbiterHandler);

          onbeforeunloadRegister(function() {

              Arbiter.inform(NectarPhotosLog.NECTAR_LOG, {"flush" : true});

              }, false);

          };});

onloadRegister(function (){if (window.Env) { Env["nctrlnid"]="36f9846d96bf343285767a649f8fbf59"; };});

onloadRegister(function (){FBML.Contexts["089f7bc10881"] = "O:20:\"ProfileBoxFBMLFlavor\":1:{s:9:\"_fbml_env\";a:8:{s:4:\"user\";i:1324118609;s:6:\"app_id\";i:6009294086;s:7:\"profile\";s:11:\"85814165780\";s:8:\"position\";s:6:\"narrow\";s:10:\"logged_out\";b:0;s:7:\"non_tos\";b:0;s:11:\"flavor_code\";i:2;s:8:\"is_tosed\";b:0;}}";

;});

onloadRegister(function (){eval_global("var app_6009294086 = new fbjs_sandbox(\"6009294086\").setBridgeHash(\"\");app_6009294086.validation_vars = {\"fb_sig_profile\":\"85814165780\",\"fb_sig_locale\":\"en_US\",\"fb_sig_in_new_facebook\":1,\"fb_sig_time\":\"1246978256.0683\",\"fb_sig_added\":0,\"fb_sig_api_key\":\"4388c0c374edd1e6614cb63e3ddcfc72\",\"fb_sig_app_id\":6009294086,\"fb_sig\":\"8ee0775f780340cfc700f26de021217b\"};app_6009294086.context = \"089f7bc10881\";app_6009294086.contextd = \"O:20:\\\"ProfileBoxFBMLFlavor\\\":1:{s:9:\\\"_fbml_env\\\";a:8:{s:4:\\\"user\\\";i:1324118609;s:6:\\\"app_id\\\";i:6009294086;s:7:\\\"profile\\\";s:11:\\\"85814165780\\\";s:8:\\\"position\\\";s:6:\\\"narrow\\\";s:10:\\\"logged_out\\\";b:0;s:7:\\\"non_tos\\\";b:0;s:11:\\\"flavor_code\\\";i:2;s:8:\\\"is_tosed\\\";b:0;}}\";app_6009294086.data = {\"user\":1324118609,\"installed\":false};app_6009294086.pending_bootstraps.push(\"\\n\\nfunction a6009294086_sbmit_comment_form()\\n{\\n    a6009294086_error = false\\n\\ta6009294086_errorMsg = \\\"\\\"\\n\\t\\n\\tif(a6009294086_document.getElementById('firstName').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"First Name is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('lastName').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Last Name is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('address').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Address is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('city').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"City is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('state').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"State is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('zip').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Zip is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('phone').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Phone is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('bday').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Birth day is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('bmonth').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Birth month is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('byear').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Birth year is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\t\\n\\tif (a6009294086_document.getElementById('email').getValue() == \\\"\\\"){\\n\\t\\ta6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Email is Required\\\\n\\\"\\n\\t}\\n\\n     if(a6009294086_document.getElementById('email2').getValue() == \\\"\\\"){        \\n         a6009294086_error = true\\n\\t a6009294086_errorMsg += \\\"Confirmation Email is Required\\\\n\\\"\\n    }\\n\\n\\t\\\/\\\/\\n       \\\/\\\/\\n      \\\/\\\/\\n      \\\/\\\/\\n\\t\\\/\\\/\\n\\\/\\\/\\n\\t\\t\\n\\t\\n\\tif (a6009294086_document.getElementById('email').getValue() != \\\"\\\"){\\n\\t\\t\\n\\t\\tif(!a6009294086_isEmailValid(a6009294086_document.getElementById('email').getValue())){\\n\\t        a6009294086_error = true\\n\\t        a6009294086_errorMsg += \\\"The email address you entered appears to be invalid.\\\\nPlease re-enter.\\\\n\\\"\\n\\t    }\\n\\t}\\n\\n    if (!a6009294086_error) {\\n\\t\\treturn true;\\n\\t} else {\\n\\t\\tnew a6009294086_Dialog().setStyle('color', 'red').showMessage('Dialog', a6009294086_errorMsg);\\n\\t\\treturn false;\\n\\t}\\t\\n}\\n \");");;});

onloadRegister(function (){var clickTarget = DOM.find($("basic_info_summary_box"), 'a.box_editor');

                  flyout_menu(clickTarget)

                    .registerHTMLMenu("flyout_menu_profile_basic_info_editor")

                    .setMenuClickArea(DOM.find($("flyout_menu_profile_basic_info_editor"), 'div.menu_custom'))

                    .setPosition(dropmenu.ALIGN_LEFT)

                    .addHook('show', CSS.addClass.bind(null, clickTarget, 'selected'))

                    .addHook('hide', CSS.removeClass.bind(null, clickTarget, 'selected'));;});

onloadRegister(function (){ft.enableFeedTracking();;});

onloadRegister(function (){var clickTarget = $('edit_profilepicture');

                    var iconTarget = $('edit_profilepicture_icon');

                    flyout_menu(clickTarget)

                      .registerHTMLMenu($('profile_picture_flyout'))

                      .setPosition(dropmenu.ALIGN_LEFT)

                      .setIconPosition(iconTarget)

                      .addHook('show', function(clickTarget) { CSS.addClass(clickTarget, 'edit_profilepicture_icon_disabled'); }

                               .bind(null, clickTarget))

                      .addHook('hide', function(clickTarget) { CSS.removeClass(clickTarget, 'edit_profilepicture_icon_disabled'); }

                              .bind(null, clickTarget));;});

onloadRegister(function (){new BlurbEditor($("profile_blurb"), "Family Coffee Roasters Since 1916", "85814165780");;});

onloadRegister(function (){new ProfileBoxController("85814165780", [6009294086,7146470109,2305272732], 1, [{dom: $("left_column"), column: 1}]);});

onloadRegister(function (){new ProfileBoxesEdit("85814165780", 0, ["boxes_left"], {"name":"Boxes","from":1,"to":3,"moveable_to_section":{"6009294086":true,"7146470109":true,"2305272732":true},"to_tab_name":"box_3","next_uri":"http:\/\/www.facebook.com\/profile.php?id=85814165780&v=box_3"});;});

onloadRegister(function (){window.profile_tab_controller = new ProfileTabController("85814165780", "1324118609", true, $("profile_top_bar"), $("profile_tabs"), $("tab_content"), "app_6009294086", "profile_tab_more", "profile_tab_add", 0, false, true, ["wall","info"], "wall");});

onloadRegister(function (){window.PROFILE_FBID = "1324118609"; window.PROFILE_OWNER_ID = "85814165780";;});

onloadRegister(function (){window.inboxAttachments = new attachments(3);;});

onloadRegister(function (){FBML.Contexts["adcef5cc0327"] = "O:13:\"TabFBMLFlavor\":1:{s:9:\"_fbml_env\";a:6:{s:4:\"user\";i:1324118609;s:7:\"profile\";s:11:\"85814165780\";s:6:\"app_id\";s:10:\"6009294086\";s:6:\"is_tab\";b:1;s:11:\"flavor_code\";i:2;s:8:\"is_tosed\";b:0;}}";

;});

onloadRegister(function (){eval_global("app_6009294086.pending_bootstraps.push(\"\\n\\nfunction a6009294086_sbmit_comment_form()\\n{\\n    a6009294086_error = false\\n\\ta6009294086_errorMsg = \\\"\\\"\\n\\t\\n\\tif(a6009294086_document.getElementById('firstName').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"First Name is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('lastName').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Last Name is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('address').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Address is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('city').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"City is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('state').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"State is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('zip').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Zip is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('phone').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Phone is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('bday').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Birth day is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('bmonth').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Birth month is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('byear').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Birth year is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\t\\n\\tif (a6009294086_document.getElementById('email').getValue() == \\\"\\\"){\\n\\t\\ta6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Email is Required\\\\n\\\"\\n\\t}\\n\\n     if(a6009294086_document.getElementById('email2').getValue() == \\\"\\\"){        \\n         a6009294086_error = true\\n\\t a6009294086_errorMsg += \\\"Confirmation Email is Required\\\\n\\\"\\n    }\\n\\n\\t\\\/\\\/\\n       \\\/\\\/\\n      \\\/\\\/\\n      \\\/\\\/\\n\\t\\\/\\\/\\n\\\/\\\/\\n\\t\\t\\n\\t\\n\\tif (a6009294086_document.getElementById('email').getValue() != \\\"\\\"){\\n\\t\\t\\n\\t\\tif(!a6009294086_isEmailValid(a6009294086_document.getElementById('email').getValue())){\\n\\t        a6009294086_error = true\\n\\t        a6009294086_errorMsg += \\\"The email address you entered appears to be invalid.\\\\nPlease re-enter.\\\\n\\\"\\n\\t    }\\n\\t}\\n\\n    if (!a6009294086_error) {\\n\\t\\treturn true;\\n\\t} else {\\n\\t\\tnew a6009294086_Dialog().setStyle('color', 'red').showMessage('Dialog', a6009294086_errorMsg);\\n\\t\\treturn false;\\n\\t}\\t\\n}\\n \");app_6009294086.pending_bootstraps.push(\"\\n\\nfunction a6009294086_sbmit_comment_form()\\n{\\n    a6009294086_error = false\\n\\ta6009294086_errorMsg = \\\"\\\"\\n\\t\\n\\tif(a6009294086_document.getElementById('firstName').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"First Name is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('lastName').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Last Name is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('address').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Address is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('city').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"City is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('state').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"State is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('zip').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Zip is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('phone').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Phone is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('bday').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Birth day is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('bmonth').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Birth month is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\tif(a6009294086_document.getElementById('byear').getValue() == \\\"\\\")\\n    {        \\n        a6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Birth year is Required\\\\n\\\"\\n      \\\/\\\/\\n    }\\n\\t\\n\\tif (a6009294086_document.getElementById('email').getValue() == \\\"\\\"){\\n\\t\\ta6009294086_error = true\\n\\t\\ta6009294086_errorMsg += \\\"Email is Required\\\\n\\\"\\n\\t}\\n\\n     if(a6009294086_document.getElementById('email2').getValue() == \\\"\\\"){        \\n         a6009294086_error = true\\n\\t a6009294086_errorMsg += \\\"Confirmation Email is Required\\\\n\\\"\\n    }\\n\\n\\t\\\/\\\/\\n       \\\/\\\/\\n      \\\/\\\/\\n      \\\/\\\/\\n\\t\\\/\\\/\\n\\\/\\\/\\n\\t\\t\\n\\t\\n\\tif (a6009294086_document.getElementById('email').getValue() != \\\"\\\"){\\n\\t\\t\\n\\t\\tif(!a6009294086_isEmailValid(a6009294086_document.getElementById('email').getValue())){\\n\\t        a6009294086_error = true\\n\\t        a6009294086_errorMsg += \\\"The email address you entered appears to be invalid.\\\\nPlease re-enter.\\\\n\\\"\\n\\t    }\\n\\t}\\n\\n    if (!a6009294086_error) {\\n\\t\\treturn true;\\n\\t} else {\\n\\t\\tnew a6009294086_Dialog().setStyle('color', 'red').showMessage('Dialog', a6009294086_errorMsg);\\n\\t\\treturn false;\\n\\t}\\t\\n}\\n \");");;});

onloadRegister(function (){tab_controller.setTabContent("info", "<div id=\"info_tab\" class=\"info_tab\"><div class=\"info_edits_div\" id=\"info_edits_div\"><a class=\"info_edit_all_div\" id=\"info_edit_all\">Edit Information<\/a><div class=\"info_done_editing_all_div status clearfix\"><div class=\"explanation\">Click on a profile section below to edit it.<\/div><div class=\"done_button\"><input type=\"button\" value=\"Done Editing\" name=\"info_done_editing_all\" id=\"info_done_editing_all\" onclick=\"this.disabled=true; this.form &amp;&amp; this.form.submit();\" class=\"inputsubmit\" \/><\/div><\/div><\/div><div id=\"info_edit_sections\"><div id=\"info_section_basic\" class=\"info_section\"><div id=\"info_section_header_basic\" class=\"section_header\"><h3 class=\"clearfix\"><span>Basic Info<\/span><div class=\"divider\">&nbsp;<\/div><a href=\"#\" class=\"close_edit\">cancel<\/a><\/h3><\/div><div class=\"profile_info_container clearfix\"><a class=\"info_edit_link\" onclick=\"\" href=\"#\" id=\"info_section_edit_basic\">Edit<\/a><a class=\"aural\" id=\"info_section_edit_jaws_basic\" href=\"#\">Edit Basic Info<\/a><div id=\"info_section_info_basic\" class=\"profile_info\"><dl class=\"info\"><dt>Founded:<\/dt><dd>1916 on the corner of Milk and Broad Street in Boston<\/dd><\/dl><\/div><div id=\"info_section_editor_basic\" class=\"profile_info section_editor\"><\/div><\/div><\/div><div id=\"info_section_detailed\" class=\"info_section\"><div id=\"info_section_header_detailed\" class=\"section_header\"><h3 class=\"clearfix\"><span>Detailed Info<\/span><div class=\"divider\">&nbsp;<\/div><a href=\"#\" class=\"close_edit\">cancel<\/a><\/h3><\/div><div class=\"profile_info_container clearfix\"><a class=\"info_edit_link\" onclick=\"\" href=\"#\" id=\"info_section_edit_detailed\">Edit<\/a><a class=\"aural\" id=\"info_section_edit_jaws_detailed\" href=\"#\">Edit Detailed Info<\/a><div id=\"info_section_info_detailed\" class=\"profile_info\"><dl class=\"info\"><dt>Website:<\/dt><dd><a href=\"http:\/\/www.newenglandcoffee.com\" onmousedown=\"UntrustedLink.bootstrap($(this), &quot;3624f9eeff7b2aaac4f3640ae3e09404&quot;, event)\" target=\"_blank\" rel=\"nofollow\">http:\/\/www.newenglandcoffee.com<\/a><br \/><a href=\"http:\/\/www.trymeiced.com\" onmousedown=\"UntrustedLink.bootstrap($(this), &quot;3624f9eeff7b2aaac4f3640ae3e09404&quot;, event)\" target=\"_blank\" rel=\"nofollow\">http:\/\/www.trymeiced.com<\/a><\/dd><dt>Company Overview:<\/dt><dd><div style=\"display: none;\" id=\"company_overview-essay-full\">New England Coffee is a family owned and operated business and has been providing quality and service for over 90 years. Our beliefs in the highest standards of customer service and product quality have been passed on in the true tradition of a family business.<br \/><br \/>While we\u2019ve grown to become New England\u2019s largest independent coffee roaster, our philosophy is still the same \u2013 to buy and sell premium coffee and provide the best service possible. We use only the finest Arabica beans in all of our products to ensure the best flavor. We offer superb blends, delicious flavored coffees, full-bodied dark roasts, and exotic blends from locations such as Colombia, Sumatra, Kenya, and Costa Rica - to support our consistent tradition of good taste.<br \/> <a href=\"#\" onclick=\"show(ge('company_overview-essay-summary'));hide(ge('company_overview-essay-full'));return false;\" style=\"white-space: nowrap;\">(read less)<\/a><\/div><div id=\"company_overview-essay-summary\">New England Coffee is a family owned and operated business and has been providing quality and service for over 90 years. Our beliefs in the highest standards of customer service and product quality have been passed on in the true tradition of a family business.<br \/><br \/>While we\u2019ve grown to become New England\u2019s largest independent coffee roaster, our philosophy is still the same \u2013 to buy and sell premium coffee and provide the best service possible. We use only the finest Arabica beans in all of our... <a href=\"#\" onclick=\"hide(ge('company_overview-essay-summary'));show(ge('company_overview-essay-full'));return false;\" style=\"white-space: nowrap;\">(read more)<\/a><\/div><\/dd><dt>Mission:<\/dt><dd>New England Coffee Company is dedicated to promoting a caring, family atmosphere, while operating a socially and environmentally responsible company.  We will maintain our commitment to charitable organizations that support people in need.<br \/><br \/>We will work to better understand the needs of our customers and orient our resources towards meeting their needs with a sense of urgency, while maintaining our commitment to excellence in all we do.<br \/><\/dd><dt>Products:<\/dt><dd>Offering gourmet coffees made from 100% Arabica beans, flavored gourmet coffees, and teas for consumers and retailers!<\/dd><\/dl><\/div><div id=\"info_section_editor_detailed\" class=\"profile_info section_editor\"><\/div><\/div><\/div><\/div><\/div>", "onloadRegister(function (){new ProfileInfoEdit(\"85814165780\", {\"0\":{\"section\":\"basic\"},\"1\":{\"section\":\"detailed\"}});;});\n");;});

onloadRegister(function (){ProfileURIController.init("85814165780");;});

onloadRegister(function (){window.loading_page_chrome = true;;});

onloadRegister(function (){placeholderSetup('q');

window.search_friend_source.url_templates = {"u":{"photo":"http:\/\/www.facebook.com\/profile.php?id=%d&v=photos","default_url":"http:\/\/www.facebook.com\/profile.php?id=%d"},"c":{"default_url":"http:\/\/www.facebook.com\/profile.php?id=%d"},"g":{"icon":"http:\/\/b.static.ak.fbcdn.net\/images\/app_icons\/group.gif?8:39263","default_url":"http:\/\/www.facebook.com\/group.php?gid=%d"},"e":{"icon":"http:\/\/static.ak.fbcdn.net\/images\/app_icons\/event.gif?8:39263","default_url":"http:\/\/www.facebook.com\/event.php?eid=%d"},"p":{"icon":"http:\/\/b.static.ak.fbcdn.net\/images\/app_icons\/fbpage.gif?8:72158"},"search":{"icon":"http:\/\/b.static.ak.fbcdn.net\/images\/app_icons\/search.gif?8:97819","default_url":"http:\/\/www.facebook.com\/s.php?init=q&q=%h"},"web":{"icon":"http:\/\/b.static.ak.fbcdn.net\/images\/app_icons\/web_search.gif?8:123103","default_url":"http:\/\/www.facebook.com\/s.php?init=q&k=80000000010&q=%h"}};

window.ADVANCED_SEARCH_TYPEAHEAD = false;

window.search_friend_source.WEBSEARCH_USER = true

new MenuBar("fb_menubar_core").setTimeoutInterval(250).init();

new MenuBar("fb_menubar_aux").setTimeoutInterval(100).init();;});

onloadRegister(function (){window.loading_page_chrome = false;;});

onloadRegister(function (){var n = "rtime"; (window.ge && ge(n)) && (ge(n).title += " | 604");;});

onloadRegister(function (){

      onbeforeunloadRegister(function () {

        window.setCookie && window.setCookie("cvr_tx", (new Date()).getTime(), 10000);

        }, true);;});

onafterloadRegister(function (){seo_tracking_onload("facebookpoc","facebookpoc","1","1","Pages","","1246541635bcc8658aa46e533afaeaf5b50e9c7bd54e05de634eafbd9375e2d","Pages","www.facebook.com","en_US","en_US","en_US","US","Logged In","");});
 
 
 

</script></div></body>

</html>

Open in new window

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24803248
So did you see this crap they added:

onsubmit="
return wait_for_load(this, event, function() { fbjs_sandbox.instances.a6009294086.bootstrap();
  return fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,6009294086),function(a6009294086_event) {
    return a6009294086_sbmit_comment_form()},6009294086],new fbjs_event(event)); });"

I am not even going to guess what all that does
0
 

Author Comment

by:vthunder70
ID: 24803282
so you don't have any ideas? :(

d'oh! If anybody has any ideas please share.

Thanks!
0
 
LVL 40

Accepted Solution

by:
RQuadling earned 500 total points
ID: 24804831
Try

<form onSubmit="sbmit_comment_form();" ...>

and at the end of sbmit_comment_form() ...

// if return status = true ...

this.submit();
else
return false;
}



If the form is validated OK, then submit it. Don't wait around.
0
 

Author Comment

by:vthunder70
ID: 24805000
OMG!!

So I wasn't sure exactly where to add your second suggestion, but I went ahead and added the ";" at the end of my function call.... AND IT WORKED!! I want to kick my computer right now! but I'm happy :)

Something else I jsut noticed though, is that when I enter my first email but not enter my second one it still sends the form, it doesn't provide validation for my second email.

and all my error messages are in one long line, is there a way to add character returns in between error messages.
Thanks a lot!
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 24805154
Don't use \n, use <br />

Remember the output is HTML and this HTML doesn't care about whitespace (space, tab, newlines, returns, etc.).

You have to supply markup to "break" the line.
0
 

Author Comment

by:vthunder70
ID: 24805624
I tried that and that actually outputs the <br /> inline wiht the rest of the text.
I've also used

\r\n and \\r\\n
...." + "<br />"
...." + <br />
...."<br />

none of the above work :(

do you happent to knwo anything about the comapirson that isn't working?

Thanks!!
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 24807121
Ah. You are using a class called Dialog to display the message.

Are you using Prototype?
0
 

Author Comment

by:vthunder70
ID: 24807152
I beleive i need that to display the error pop up box wiht all the error message in it.

no?
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 24807207
Yes you do. But the class "Dialog" is non-standard.

So I would like to see the code to help you get the output right.

If \r\n are not working and <br /> becomes part of the output,this suggests the message is being html encoded to prevent abuse.

Getting round that could be hard.

Can you show all the code? Or a link to your page?
0
 

Author Comment

by:vthunder70
ID: 24807234
all the code that I used is at the top of this question as part of the submitted question =P

thanks!
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 24807276
That code does NOT include any description of Dialog, only a usage.

Can you show the entire HTML. I'm looking for <script> tags which include the Dialog code.
0
 

Author Comment

by:vthunder70
ID: 24807347
oh.. that Dialog() function I'm assuming is the facebook Alert() funciton. I found that method in this URL: http://forum.developers.facebook.com/viewtopic.php?id=31139

thanks and sorry for the confusion!
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 24810976
No, that would be the alert() function which is part of JavaScript.

You may find that the Dialog() only allows plain text.

I need to see the original source. Sorry. Without it I can't advise you any further.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24811063
However do NOT submit a form in the onSubmit event - not a good advice
0
 

Author Comment

by:vthunder70
ID: 24812841
Hi RQuading,

The code that's there is every little bit of code I'm ussing. If I go inside my FBML text area where I type my HTML and FBJS that's all there is to it.

I also read through some documenetation that FBJS doesn't have an Alert() function

-mplunqjan,
what do mean by comment, i'm confused now

Thanks!
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24812883
this.submit();

should not be used in code called from onSubmit
0
 

Author Comment

by:vthunder70
ID: 24812930
i'm not using this.submit(); in my form.

I'm attaching the code again from top to bottom everytning that's in my text field
<script>
 

function sbmit_comment_form()

{

    error = false

	errorMsg = ""

	

	if(document.getElementById('firstName').getValue() == "")

    {        

        error = true

		errorMsg += "First Name is Required\r"

      // return false;

    }

	if(document.getElementById('lastName').getValue() == "")

    {        

        error = true

		errorMsg += "Last Name is Required\n"

      // return false;

    }

	if(document.getElementById('address').getValue() == "")

    {        

        error = true

		errorMsg += "Address is Required\n"

      // return false;

    }

	if(document.getElementById('city').getValue() == "")

    {        

        error = true

		errorMsg += "City is Required\n"

      // return false;

    }

	if(document.getElementById('state').getValue() == "")

    {        

        error = true

		errorMsg += "State is Required\n"

      // return false;

    }

	if(document.getElementById('zip').getValue() == "")

    {        

        error = true

		errorMsg += "Zip is Required\n"

      // return false;

    }

	if(document.getElementById('phone').getValue() == "")

    {        

        error = true

		errorMsg += "Phone is Required\n"

      // return false;

    }

	if(document.getElementById('bday').getValue() == "")

    {        

        error = true

		errorMsg += "Birth day is Required\n"

      // return false;

    }

	if(document.getElementById('bmonth').getValue() == "")

    {        

        error = true

		errorMsg += "Birth month is Required\n"

      // return false;

    }

	if(document.getElementById('byear').getValue() == "")

    {        

        error = true

		errorMsg += "Birth year is Required\n"

      // return false;

    }

	

	if (document.getElementById('email').getValue() == ""){

		error = true

		errorMsg += "Email is Required\n"

	}
 

     if(document.getElementById('email2').getValue() == ""){        

         error = true

	 errorMsg += "Confirmation Email is Required\n"

    }
 

	//if(document.getElementById('email').getValue() == document.getElementById('email2').getValue()){

       //         error = false;

      //  }else{

      //          error = true;

	//	errorMsg += "Please re-enter your email.\n"

//	}

		

	

	if (document.getElementById('email').getValue() != ""){

		

		if(!isEmailValid(document.getElementById('email').getValue())){

	        error = true

	        errorMsg += "The email address you entered appears to be invalid.\nPlease re-enter.\n"

	    }

	}
 

    if (!error) {

		return true;

	} else {

		new Dialog().setStyle('color', 'red').showMessage('Dialog', errorMsg);

		return false;

	}	

}

 </script>
 
 

<form onsubmit="return sbmit_comment_form();" name="comment" method="post" action="http://www.newenglandcoffee.com/data/formSubmit.asp">

                 <input name="emailRecipients" type="hidden" value="consumerrelations@necoffeeco.com" ID="Hidden7">

    <input type=hidden name="emailSubject" value="submitted the Newsletter Signup Form" ID="Hidden8">

    <input name="replyToField" type="hidden" value="E-Mail Address" ID="Hidden9">

    <input name="redirect" type="hidden" value="http://www.newenglandcoffee.com/contact/sign_up_for_our_e-newsletter/thankyou.asp" ID="Hidden10">

    <input name="emailFrom" type="hidden" value="consumerrelations@necoffeeco.com" ID="Hidden11">

    <input name="formId" type="hidden" value="4" ID="Hidden12">
 

	First Name:  <input type="text" name="firstName" id="firstName" maxlength="30"><br /><br />

	Last Name:  <input type="text" name="lastName" id="lastName" maxlength="30"><br /><br />

   	Address:  <input type="text" name="address" id="address" maxlength="30"><br /><br />

  	City:  <input type="text" name="city" id="city" maxlength="30"><br /><br />

       State:  

    		<select name="state" ID="state" class="content">

	                    <option value="">---</option>

		                <option value="AL">AL</option>

		                <option value="AK">AK</option>

		                <option value="AZ">AZ</option>

		                <option value="AR">AR</option>

		                <option value="CA">CA</option>

		                <option value="CO">CO</option>

		                <option value="CT">CT</option>

		                <option value="DE">DE</option>

		                <option value="DC">DC</option>

		                <option value="FL">FL</option>

		                <option value="GA">GA</option>

		                <option value="HI">HI</option>

		                <option value="ID">ID</option>

		                <option value="IL">IL</option>

		                <option value="IN">IN</option>

		                <option value="IA">IA</option>

		                <option value="KS">KS</option>

		                <option value="KY">KY</option>

		                <option value="LA">LA</option>

		                <option value="ME">ME</option>

		                <option value="MD">MD</option>

		                <option value="MA">MA</option>

		                <option value="MI">MI</option>

		                <option value="MN">MN</option>

		                <option value="MS">MS</option>

		                <option value="MO">MO</option>

		                <option value="MT">MT</option>

		                <option value="NE">NE</option>

		                <option value="NV">NV</option>

		                <option value="NH">NH</option>

		                <option value="NJ">NJ</option>

		                <option value="NM">NM</option>

		                <option value="NY">NY</option>

		                <option value="NC">NC</option>

		                <option value="ND">ND</option>

		                <option value="OH">OH</option>

		                <option value="OK">OK</option>

		                <option value="OR">OR</option>

		                <option value="PA">PA</option>

		                <option value="RI">RI</option>

		                <option value="SC">SC</option>

		                <option value="SD">SD</option>

		                <option value="TN">TN</option>

		                <option value="TX">TX</option>

		                <option value="UT">UT</option>

		                <option value="VT">VT</option>

		                <option value="VA">VA</option>

		                <option value="WA">WA</option>

		                <option value="WV">WV</option>

		                <option value="WI">WI</option>

		                <option value="WY">WY</option>

	                </select><br /><br />

    Zip:  <input type="text" name="zip" id="zip" maxlength="30"><br /><br />

    Phone:  <input type="text" name="phone" id="phone" maxlength="30"><br /><br />

    birthday:  

    			<select name="bmonth" class="input_box" id="bmonth" style="width:117px;">

                    <option value="">Month

                    <option value="1">January

                    <option value="2">February

                    <option value="3">March

                    <option value="4">April

                    <option value="5">May

                    <option value="6">June

                    <option value="7">July

                    <option value="8">August

                    <option value="9">September

                    <option value="10">October

                    <option value="11">November

                    <option value="12">December

                </select>

                <select name="bday" class="input_box" id="bday" style="width:56px;">

                    <option value="">Day

                    <option value="1">1

                    <option value="2">2

                    <option value="3">3

                    <option value="4">4

                    <option value="5">5

                    <option value="6">6

                    <option value="7">7

                    <option value="8">8

                    <option value="9">9

                    <option value="10">10

                    <option value="11">11

                    <option value="12">12

                    <option value="13">13

                    <option value="14">14

                    <option value="15">15

                    <option value="16">16

                    <option value="17">17

                    <option value="18">18

                    <option value="19">19

                    <option value="20">20

                    <option value="21">21

                    <option value="22">22

                    <option value="23">23

                    <option value="24">24

                    <option value="25">25

                    <option value="26">26

                    <option value="27">27

                    <option value="28">28

                    <option value="29">29

                    <option value="30">30

                    <option value="31">31

                </select>

                <SELECT NAME="byear" id="byear" class="input_box" style="width:55px;">

                    <option value="">Year</option>

                    <OPTION value =1900>1900</OPTION>

                    <OPTION value =1901>1901</OPTION>

                    <OPTION value =1902>1902</OPTION>

                    <OPTION value =1903>1903</OPTION>

                    <OPTION value =1904>1904</OPTION>

                    <OPTION value =1905>1905</OPTION>

                    <OPTION value =1906>1906</OPTION>

                    <OPTION value =1907>1907</OPTION>

                    <OPTION value =1908>1908</OPTION>

                    <OPTION value =1909>1909</OPTION>

                    <OPTION value =1910>1910</OPTION>

                    <OPTION value =1911>1911</OPTION>

                    <OPTION value =1912>1912</OPTION>

                    <OPTION value =1913>1913</OPTION>

                    <OPTION value =1914>1914</OPTION>

                    <OPTION value =1915>1915</OPTION>

                    <OPTION value =1916>1916</OPTION>

                    <OPTION value =1917>1917</OPTION>

                    <OPTION value =1918>1918</OPTION>

                    <OPTION value =1919>1919</OPTION>

                    <OPTION value =1920>1920</OPTION>

                    <OPTION value =1921>1921</OPTION>

                    <OPTION value =1922>1922</OPTION>

                    <OPTION value =1923>1923</OPTION>

                    <OPTION value =1924>1924</OPTION>

                    <OPTION value =1925>1925</OPTION>

                    <OPTION value =1926>1926</OPTION>

                    <OPTION value =1927>1927</OPTION>

                    <OPTION value =1928>1928</OPTION>

                    <OPTION value =1929>1929</OPTION>

                    <OPTION value =1930>1930</OPTION>

                    <OPTION value =1931>1931</OPTION>

                    <OPTION value =1932>1932</OPTION>

                    <OPTION value =1933>1933</OPTION>

                    <OPTION value =1934>1934</OPTION>

                    <OPTION value =1935>1935</OPTION>

                    <OPTION value =1936>1936</OPTION>

                    <OPTION value =1937>1937</OPTION>

                    <OPTION value =1938>1938</OPTION>

                    <OPTION value =1939>1939</OPTION>

                    <OPTION value =1940>1940</OPTION>

                    <OPTION value =1941>1941</OPTION>

                    <OPTION value =1942>1942</OPTION>

                    <OPTION value =1943>1943</OPTION>

                    <OPTION value =1944>1944</OPTION>

                    <OPTION value =1945>1945</OPTION>

                    <OPTION value =1946>1946</OPTION>

                    <OPTION value =1947>1947</OPTION>

                    <OPTION value =1948>1948</OPTION>

                    <OPTION value =1949>1949</OPTION>

                    <OPTION value =1950>1950</OPTION>

                    <OPTION value =1951>1951</OPTION>

                    <OPTION value =1952>1952</OPTION>

                    <OPTION value =1953>1953</OPTION>

                    <OPTION value =1954>1954</OPTION>

                    <OPTION value =1955>1955</OPTION>

                    <OPTION value =1956>1956</OPTION>

                    <OPTION value =1957>1957</OPTION>

                    <OPTION value =1958>1958</OPTION>

                    <OPTION value =1959>1959</OPTION>

                    <OPTION value =1960>1960</OPTION>

                    <OPTION value =1961>1961</OPTION>

                    <OPTION value =1962>1962</OPTION>

                    <OPTION value =1963>1963</OPTION>

                    <OPTION value =1964>1964</OPTION>

                    <OPTION value =1965>1965</OPTION>

                    <OPTION value =1966>1966</OPTION>

                    <OPTION value =1967>1967</OPTION>

                    <OPTION value =1968>1968</OPTION>

                    <OPTION value =1969>1969</OPTION>

                    <OPTION value =1970>1970</OPTION>

                    <OPTION value =1971>1971</OPTION>

                    <OPTION value =1972>1972</OPTION>

                    <OPTION value =1973>1973</OPTION>

                    <OPTION value =1974>1974</OPTION>

                    <OPTION value =1975>1975</OPTION>

                    <OPTION value =1976>1976</OPTION>

                    <OPTION value =1977>1977</OPTION>

                    <OPTION value =1978>1978</OPTION>

                    <OPTION value =1979>1979</OPTION>

                    <OPTION value =1980>1980</OPTION>

                    <OPTION value =1981>1981</OPTION>

                    <OPTION value =1982>1982</OPTION>

                    <OPTION value =1983>1983</OPTION>

                    <OPTION value =1984>1984</OPTION>

                    <OPTION value =1985>1985</OPTION>

                    <OPTION value =1986>1986</OPTION>

                    <OPTION value =1987>1987</OPTION>

                    <OPTION value =1988>1988</OPTION>

                    <OPTION value =1989>1989</OPTION>

                    <OPTION value =1990>1990</OPTION>

                    <OPTION value =1991>1991</OPTION>

                    <OPTION value =1992>1992</OPTION>

                    <OPTION value =1993>1993</OPTION>

                    <OPTION value =1994>1994</OPTION>

                    <OPTION value =1995>1995</OPTION>

                    <OPTION value =1996>1996</OPTION>

                    <OPTION value =1997>1997</OPTION>

                    <OPTION value =1998>1998</OPTION>

                    <OPTION value =1999>1999</OPTION>

                    <OPTION value =2000>2000</OPTION>

             </SELECT><br /><br />

    E-mail:  <input type="text" name="email" id="email" maxlength="30"><br /><br />

    Re-enter E-mail:  <input type="text" name="email2" id="email2" maxlength="30"><br /><br />

    <input type="submit" name="submit" value="Submit" />

</form>

Open in new window

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24813061
I know YOU are not. the comment was in case you decided to use the comment in #24804831
0
 

Author Comment

by:vthunder70
ID: 24813093
oh gotcha! this thing is driving me crazy! there's very little documentation or samples out there. I've spend hours in google...
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 40

Expert Comment

by:RQuadling
ID: 24821612
mplungjan, I've always assumed that you don't get events fired from usercode.

Or calling this.submit() does NOT fire the onSubmit method.

Calling this.submit for a form submits the form. That's it.

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24821641
calling this.submit() from the onSubmit event is not a good idea. That is all I meant.

So if you have

<form onSubmit="validate()">

you should not have a validate that does this:

function validate() {
 .
.
.
  theForm.submit()
}

this.submit would not work in any case in that place


0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24821667
Instead have

<form onSubmit="return validate(this)">

function validate(theForm) {
 .
if () { // error
  return false;
}
.
.
  return true;
}

assuming someone like facebook does not break it if the call does not have a semicolon:
<form onSubmit="return validate(this); /* stop messing with my code */">
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 24821670
Aha. Yes. I see. When you use frameworks you can sometime forget what "this" is.
0
 

Author Comment

by:vthunder70
ID: 24824022
do you guys have any ideas on the rest of my problems?

many thanks!
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 24824095
Any chance of a live URL?
0
 

Author Comment

by:vthunder70
ID: 24839539
Hi RQuadling,

Here is the facebook URL

http://www.facebook.com/pages/New-England-Coffee/85814165780

if you click on the Boxes tab you'll see the form there.

Thanks!
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 24863905
It seems to be working? I submitted an empty form and was told to enter data.

I filled in the form and it submitted.

0
 

Author Comment

by:vthunder70
ID: 24864119
The problem is wiht the 2 emails fields

it doesn't stop the submition if you leave the "re-enter email addres" box. I need to show the alert message for "please re-enter your email"


0
 
LVL 40

Expert Comment

by:RQuadling
ID: 24864545
I see. Can you try this javascript replacement.
<script type="text/javascript">

String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); };

function sbmit_comment_form()

	{

	var errorMsg =

		(document.getElementById('firstName').getValue().trim().length ? 'First Name is required. ' : '') +

		(document.getElementById('lastName').getValue().trim().length ? 'Last Name is required. ' : '') +

		(document.getElementById('address').getValue().trim().length ? 'Address is required. ' : '') +

		(document.getElementById('city').getValue().trim().length ? 'City is required. ' : '') +

		(document.getElementById('state').getValue().trim().length ? 'State is required. ' : '') +

		(document.getElementById('zip').getValue().trim().length ? 'Zip is required. ' : '') +

		(document.getElementById('phone').getValue().trim().length ? 'Phone is required. ' : '') +

		(document.getElementById('bday').getValue().trim().length ? 'Birth day is required. ' : '') +

		(document.getElementById('bmonth').getValue().trim().length ? 'Birth month is required. ' : '') +

		(document.getElementById('byear').getValue().trim().length ? 'Birth year is required. ' : '') +

		(document.getElementById('email').getValue().trim().length ? 'Email is required. ' : '') +

		(document.getElementById('email2').getValue().trim().length ? 'Confirmation Email is required. ' : '') +

		(!document.getElementById('email').getValue().trim().length && document.getElementById('email').getValue().trim() != document.getElementById('email2').getValue().trim() ? 'Emails must match. ' : '');

 

	alert(errorMsg);

 

	if (errorMsg)

		{

		new Dialog().setStyle('color', 'red').showMessage('Dialog', errorMsg);

		return false;

		}

	else

		{

		return true;

		}

	}

</script>

Open in new window

0
 

Author Comment

by:vthunder70
ID: 24871518
Hi RQuadling,

thanks for the last post but unfortunally is not working.

It doesn't check for any fields, it lets me send an empty form.
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 24874043
Did you get a normal alert?
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 24874053
If not, then the code isn't running at all.
0
 

Author Comment

by:vthunder70
ID: 24874120
Didn't get a norma alert. But I don't think the alert() functions in facebook  
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 24874227
alert() is a javascript function, so it should. I've got a FB account, but not done ANY mods to it.

Can you re-upload the code I provided so I can debug it live?
0
 

Author Comment

by:vthunder70
ID: 24878528
is up now.

Again, thanks for the effort! its' very appreciated!
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 24878634
You'll have to wait a while, as I am at work and facebook is one of the blocked sites.
0
 

Author Comment

by:vthunder70
ID: 24878650
thanks! I understand
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 24883490
I see that FaceBook is using eval() to run your code.

Try this ...
<script type="text/javascript">

function sbmit_comment_form()

  {

  var errorMsg =

    (document.getElementById('firstName').getValue().length ? '' : 'First Name is required. ') +

    (document.getElementById('lastName').getValue().length ? '' : 'Last Name is required. ') +

    (document.getElementById('address').getValue().length ? '' : 'Address is required. ') +

    (document.getElementById('city').getValue().length ? '' : 'City is required. ') +

    (document.getElementById('state').getValue().length ? '' : 'State is required. ') +

    (document.getElementById('zip').getValue().length ? '' : 'Zip is required. ') +

    (document.getElementById('phone').getValue().length ? '' : 'Phone is required. ') +

    (document.getElementById('bday').getValue().length ? '' : 'Birth day is required. ') +

    (document.getElementById('bmonth').getValue().length ? '' : 'Birth month is required. ') +

    (document.getElementById('byear').getValue().length ? '' : 'Birth year is required. ') +

    (document.getElementById('email').getValue().length ? '' : 'Email is required. ') +

    (document.getElementById('email2').getValue().length ? '' : 'Confirmation Email is required. ') +

    (!document.getElementById('email').getValue().length && document.getElementById('email').getValue() != document.getElementById('email2').getValue() ? '' : 'Emails must match. ');

 

  alert(errorMsg);

 

  if (errorMsg)

    {

    new Dialog().setStyle('color', 'red').showMessage('Dialog', errorMsg);

    return false;

    }

  else

    {

    return true;

    }

  }

</script>

Open in new window

0
 

Author Comment

by:vthunder70
ID: 24946562
I got through the problem in a very corky way, I'll try to explain:

1. The validation to see if emails were entered MUST go firs, if this doesn't happen fist the page will for some reason skip it

2. The email comparison has to be the last thing to be done and it has to have it's own Dialog() message. For some reason if you try to add the error to the errorMsg variable it won't do it and it will submit the form anyways.

That's it, it works as good as I can get if. I still can get a break line in between errors but I can't keep wasting time on this form =p

RQuadling I will give you the points, you stock around and tryed hard. Unfortunately this facebook thing is just not friendly. but your help and perseverance was very appreciated.


Thanks for your help.
0
 
LVL 1

Expert Comment

by:diebar
ID: 25553737
Try changing ".getValue()" to ".value".
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now