//<![CDATA[

function popupWindow( css, width, height ) {

	if ( !document.getElementsByTagName ) return false;
	var links = document.getElementsByTagName( "a" );
	for ( var i = 0; i < links.length; i++ ) {

		if ( links[i].className.match( css ) ) {
			links[i].onclick = function() {
				if ( !width && !height ) w = window.open( this.href, 'popup' );
				else w = window.open( this.href, 'popup', 'height=' + height + ',width=' + width + ',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0' );
				if ( window.focus ) { w.focus(); }
				return false;
			}
		}

	}

}


window.onload = function() {
	popupWindow( 'popup', 510, 520 );
	popupWindow( 'popup2', 510, 280 );
	popupWindow( 'newwindow', 0, 0 );
}

//]]>

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}