#!/bin/sh

URL=$1

# Select one of the methods below - comment out the other two.

# 1. If you dance with the dark side
#iexplorer -remote "openURL($URL)"

# 2. Use nscommand - Get it at 
#    http://www.cerias.purdue.edu/homes/zamboni/files/nscommand.tar.gz
if nscommand "openURL($URL)"
then
	exit 0 # we are OK
else
	# Netscape was not running
	echo Launching netscape...
	netscape $URL &
fi

# 3. Use netscape directly
#netscape -remote "openURL($URL)"

exit 0
