The value of the field with the id 'post_url' is http://www.example.com/. Shouldn't JavaScript return true for anything greater than -1
?
alert('1a = ' + id_'+id_('post_url').value.indexOf('http:') );// ); // 0
alert('1b' '1b += id_'+id_('post_url').value.indexOf('http:') > -1); // false
alert('2a = ' + id_'+id_('post_url').value.indexOf('www.') );// ); // 7
alert('2b' '2b += id_'+id_('post_url').value.indexOf('www.') > -1); // false