 function setHomePage(URL) {
	var basePath = "index.iml";
	var urlArg = (setHomePage.arguments.length == 1);
	var HomePage = (urlArg) ? URL : document.location.href;
	if (navigator.appName == "Netscape") {
		window.open(basePath+"NetscapeHomepage.html","NNInstructions","statusbar=0,menubar=0,height=400,width=400");
		return false;
	}
	else if ((navigator.appName == "Microsoft Internet Explorer") && 
		(navigator.appVersion.indexOf("MSIE") != -1) &&
		(parseInt(navigator.appVersion.substr(navigator.appVersion.indexOf("MSIE")+5)) >= 5)) {
		document.body.style.behavior='url(#default#homepage)';
		if(urlArg) {
			document.body.setHomePage(HomePage);
			return false;
		} else {
			if(document.body.isHomePage(HomePage))
			{
				alert('Your current home page is set to\n"'+HomePage+'".');
				return false;
			}
			document.body.setHomePage(HomePage);
			if(!document.body.isHomePage(HomePage))
			{
				return false;
			}
			else {
				window.open(basePath+"HomePageSetIE.html?"+document.location.hostname+document.location.pathname,"IEHomePageSet","statusbar=0,menubar=0,height=400,width=400");
				return true;
			}
		}
	}
	else
	{
		window.open(basePath+"Instructions.html","GeneralInstructions","statusbar=0,menubar=0,height=400,width=400");
	}
	return false;
 }

