function GetCurrentDirectory() { var curHref = ; var curArray = ("/"); delete curArray[ - 1]; var curdir = ("/"); return curdir; }