Ok, a few things.
1. Don't use text like "Click Here" in links. [
w3.org...]
2. The href attribute of a link takes a URI. A URI can consist of a scheme followed by : followed by the scheme specific parts. "javascript" is not a valid scheme. Instead, use a click event handler or listener.
3. Your code is not currently accessible for those with JavaScript disabled (including some search engines).
Change your links to be more like this:
<a href="http://www.site0.com" onclick="return myfunction(this);">Site 0</a>
This way, users with JavaScript disabled will still be able to follow the link.
Next, change myfunction as follows:
function myfunction(el) {
window.open(el.href, 'jav', 'width=1000,height=750,resizable=yes');
return false;
}
This is a much better way of opening new windows.
As a side note, the code you had should not have caused any noticeable slow down. You might try using some developer tools (Chrome has built in tools, as does IE8+, and tools are available for download in Firefox like Firebug, though I think the newest version of Firefox has some tools built in). There are profiling tools to see where your code is spending the most amount of time, and you can also see network requests.