Such type link google to index? <a href="javascript:w('http://www.4templates.com/');">http://www.4templates.com/</a>
They do follow javascript links, well the original one anyway document.location.href='http://www.digitalpoint.com';
Crawler doesn't follow JavaScript links. So it would not be indexed. Main reason is this Java Script can't be parse by crawler so no means of URL as argument there.