{
int linshiintnum = 0;
int flags = 0;
string urlchange = urlstr;;
while( stotalone.indexof( "../" ) >= 0 )
{
stotalone = stotalone.substring( stotalone.indexof( "../" ) + 3 );