I've got a theme, with a options-page. I have to create tabs for this, so I have to include my custom js-file.

I have attempted this:

function add_js() {
    echo '<script type="text/javascript" src="'.get_bloginfo('template_url').'/options/js.js'.'"></script>';
}

add_action('wp_head','add_js')

However, this obiviously adds the script towards the blog itself, although not the admin-panel. How you can include this js-file only in options-page?

Thanks, Martti Laine

Might i refer you to definitely towards the following WPSE subject.
http://wordpress.stackexchange.com/questions/2073/including-css-and-js-on-admin-screen-of-custom-theme-options

Hope that can help.