MSSERVER = "http://localhost"
MSPATH = "/scripts/mapserv.exe"
MSMAP = "c:/mapclient/examples/examples.map"

MSURL = MSSERVER + MSPATH 
EXSERVER = location.href.replace(/(http:\/\/.*?)\/.*/,"$1")
MSINSTALLED = MSSERVER == EXSERVER
if (! MSINSTALLED && ! location.href.match(/main.html/)) {
	msg = ("-------------------------WARNING----------------------------\n\n") 
	msg += ("Examples should be run from the same WebServer as MapServer\n")
	msg += ("Examples are on: " + EXSERVER)
	msg += ("; MapServer is on: " + MSSERVER + "\n")
	msg += ("Please adapt \"examples.js\" in MapClient's root directory")
	alert(msg) 
}
	
