function URLValue()

in src/components/nms/msdoc/1.6.0/vs2005/Output/scripts/script_feedBack.js [31:54]


function URLValue()
{
	if (URL.indexOf(".chm::")!=-1) 
	{
		a = URL;
		while (a.indexOf("\\") < a.indexOf(".chm::") || a.indexOf("//") > a.indexOf(".chm::")) 
		{
			if (a.indexOf("\\")==-1)
			{
				break;
			}
			a = a.substring(a.indexOf("\\")+1,a.length);
		}
		return("ms-its:"+a)
	}
	else if (URL.indexOf("file:///")!=-1) 
	{
		a = URL;

		b = a.substring(a.lastIndexOf("html")+5,a.length);
		return("file:///"+b);
	}
	else return(URL);
}