function openWindow(link) {
      _gaq.push(function() {
        var tracker = _gaq._getAsyncTracker();  //add name param if needed
		if(link.target=="_blank"){
			window.open(tracker._getLinkerUrl(link.href));
		}else{
			window.location = tracker._getLinkerUrl(link.href);
		}
      });
      return false;
    }

$(document).ready(function(){
		// Creating custom :external selector
		$.expr[':'].external = function(obj){
			return !obj.href.match(/^mailto\:/) && !obj.href.match(/^javascript\:/) && (obj.hostname != location.hostname);
		};
		
		$("form").submit(function(){
			if(this.action.match(location.hostname)!=null && this.action.match(/^http|https\:/)){
				_gaq.push(['_linkByPost', this]);
			}
		});
	});
