function op(href, width, height) {
    if ( !width ) width = 600;
    if ( !height ) height = 400;
    window.open(href, 'name', 'width='+width+',height='+height+',location=no,menubar=no,toolbar=no');
    return false;
}

/* addEvent function from http://www.quirksmode.org/blog/archives/2005/10/_and_the_winner_1.html */
function addEvent( obj, type, fn ) {
	if (obj.addEventListener) {
        obj.addEventListener( type, fn, false );
	} else if (obj.attachEvent) {
		obj["e"+type+fn] = fn;
		obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
		obj.attachEvent( "on"+type, obj[type+fn] );
	}
}

addEvent( window, 'load',
    function() {
        // set up focus
        if ( $('#initial-focus').cur[0] ) $('#initial-focus').cur[0].focus();

        // set up hover style for buttons (Thank you IE)
        $('input.button').hover(
            function() {
                this.__oldColor = this.style.color;
                this.style.color = 'red';
                this.style.cursor = 'pointer';
            },
            function() {
                this.style.color = this.__oldColor;
                this.style.cursor = null;
            }
        );
    }
);
