$(window).load(function() {
	
	$('a').focus(function() {
		this.blur();
	});
	
});

function popup(url, width, height, name) {
		var appendix;
		if(url.indexOf('?') > 0) {
			appendix = '&';
		} else {
			appendix = '?';
		}
		if(url.indexOf('#') > 0) {
			url = url.substring(0, url.indexOf('#')) + appendix + 'popup=true' + url.substring(url.indexOf('#'));
		} else {
			url = url + appendix + 'popup=true';
		}
        var p = window.open(url, name, 'width='+width+',height='+height+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0');
		if (p)
			p.focus();
}

function popupRS(url, name, width, height)
{
	var appendix;
		if(url.indexOf('?') > 0) {
			appendix = '&';
		} else {
			appendix = '?';
		}
		if(url.indexOf('#') > 0) {
			url = url.substring(0, url.indexOf('#')) + appendix + 'popup=true' + url.substring(url.indexOf('#'));
		} else {
			url = url + appendix + 'popup=true';
		}
	p = window.open(url, name, 'dependent=yes,width='+width+',height='+height+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1');
	if (p)
	{
		p.focus();
	}
}
