function OpenNielsen(item, zip)
{
    var header = document.getElementById("header");
    
    var footer = document.getElementById("footer");
    
    if(header == null || footer == null)
    {
        window.setTimeout("OpenNielsen('" + item + "','" + zip + "')", 200);
        
        return;
    }
    
    header.value = "<div style=\"background:url(" + BaseUrl + "/App_Themes/Default/Images/Graphics/Locator/storeLocator.jpg) no-repeat;width: 705px;" +
                   "height:370px; padding:15px 20px 15px 25px; font-family:'Lucida Sans Unicode';\">" +
                   "<div class='logo' style='background: url("
                   + BaseUrl + "/App_Themes/Default/Images/Graphics/Locator/trojanLogo.jpg) no-repeat;height:124px'>" +
                   "<!-- --></div><div style='margin:0;font-size:13px;font-weight:bold;padding-top:4px;'></div>" +
                   "<div style='width:496px;height:22px;padding:6px 0 0 200px;background:url(" + BaseUrl + 
                   "/App_Themes/Default/Images/Graphics/Locator/productFinder.jpg) no-repeat left bottom;'></div>" ;
    
    var body = document.getElementById("body");
    
    body.value = " <body><style type='text/css'>.FieldCell{ vertical-align:middle;padding-left:15px; } " +
                 " .HeadingCell{ vertical-align:middle;padding-left:15px; } " +   
                 " body table { width:100%; margin-top:5px; vertical-align:top; font-size:11px; } " +
                 " body table a:link,body table a:visited { text-decoration:none; color:#b28500; } " +
                 " .footer {width:638px;margin:50px auto 0 auto;font-size:10px;text-align:center;padding-top:3px; " +
                 " background:url(" + BaseUrl + "/App_Themes/Default/Images/Graphics/Locator/footerLine.jpg) top center no-repeat;}" +
                 " div.footer ul { margin:0;padding:4px 0 0 12px;color:#ababab;list-style-type:none;}" +   
                 " div.footer ul li { float:left;} " +
                 " div.footer ul li.pipe { text-align:center; width:18px;} " +
                 " div.footer ul a { text-decoration:none; color:#ababab;} </style>";
						
    footer.value = " <div class='footer'><ul><li>Copyright &copy; 2009 Church & Dwight Co., Inc.</li><li class='pipe'>|</li> " +
                   " <li><a href='http://www.trojancondoms.com/Resources/Terms.aspx'>  Terms and Conditions </a></li><li class='pipe'>| " +
                   " </li><li> <a href='http://www.trojancondoms.com/Resources/Privacy.aspx'> Privacy </a> </li> " + 
                   " <li class='pipe'>| </li><li><a href='http://www.trojancondoms.com/Resources/Agreement.aspx'>  User Agreement  </a></li><li class='pipe'> | </li> " + 
                   " <li> <a href='http://www.trojancondoms.com/Resources/Faqs.aspx'>  FAQ's </a> </li><li class='pipe'> |  " +
                   " </li><li><a href='http://www.trojanprofessional.com'> Professional </a></li>" +                
                   " </ul></div></div><br />";     
                
    
    var nielsenUrl = "http://www.itemlocator.net/scripts/cgiip.exe/WService=ils3/webspeed/locatorweb.w?radius=20&count=99&customer=churchweb&zip=" + zip + "&item=" + item;

    var frmFindStore = document.getElementById("frmFindStore");
    
    frmFindStore.action = nielsenUrl;
    
    frmFindStore.submit();
}

function IsNumericInput( e, allowDecimals, decimalChar, textBox )
{
    var unicode = e.charCode ? e.charCode : e.keyCode;

    if( unicode != 8 && unicode != 13 && unicode != 9 )
    { 
        if(!allowDecimals)
        {
            return (unicode >= 48 && unicode <= 57);
        }
        else
        {
            var decimalCode = decimalChar.charCodeAt(0);
            
            if(unicode == decimalCode && textBox.value.indexOf(decimalChar) > -1)
                return false;
               
            return (unicode >= 48 && unicode <= 57) || unicode == decimalCode;
        }
    }
    else
    {
        return true;
    }
}