1234 */ function GetLastPath(PathFile, PathSep){ if (PathSep == null) PathSep = "/"; if (PathFile.substr(PathFile.length - 1, 1) == PathSep) PathFile = PathFile.substr(0, PathFile.length - 1); var PosStart = PathFile.lastIndexOf(PathSep) + 1; if (PosStart == 0){ return ""; } return PathFile.substr(PosStart); } /* --¼³¸í Url¿¡¼­ ¼­¹öÀÇ ÁÖ¼Ò¸¸À» °¡Á®¿À±â À§ÇÔ. --¿¹Á¦ GetServerURL("http://www.microsoft.com/vbasic/ado/") -> www.microsoft.com */ /* function GetServerUrl(Url){ //http://¿¡ ÀÖ´Â //ÀÇ À§Ä¡¸¦ ¾Ë¾Æ³¿ var SlashPos = Url.indexOf("//"); var SlashPos = Url.indexOf("/", SlashPos + 2); if (SlashPos != -1){ return Url.substr(0, SlashPos); } else{ return Url; } } */ //-->