﻿function getLocation() {
	var res=window.location.toString();
	if (res.length>0) {
		if (res.charAt(res.length-1)=='/') res+='index.asp';
		else if (res.substr(res.length-3)!='asp')  res+='/index.asp';
	}
	return res;
}