/*validate javascript website: http://www.jslint.com/*/
function getLocations()
{
	var indepospage ="&nbsp;<a href=\"/~pposd8840/indepos.html\">Home</a> &nbsp;>>&nbsp;";    
	document.write(indepospage);

}

/********/
/****breadcrumb****/
/********/
function currentSiteLoc()
{
  
  getURL = new String;
  getURL = "";
  partURL = new String;
  partURL = "";
  holdPart = new Object;
  var pos = 0;
  var outputLink = "<a href=\"/\">Go Home</a>  >";
  //get the whole current URL	  
  getURL = location.href;
  //get URL start after http://pe...
  getURL = getURL.slice(getURL.indexOf("e")-1,getURL.length);
  //document.write("currentSiteLoc");
  //get the position of next part
  partURL = getURL.indexOf("/");
  //start from the part
  getURL = getURL.slice(partURL+1,getURL.length)
  //loop until there is no more part of URL
  while(partURL!=-1)
  {
  	//get the position of next part
      partURL = getURL.indexOf("/");
      if(partURL!=-1)
      {
      	holdPart[pos] = getURL.slice(0,partURL)
      	getURL = getURL.slice(partURL+1,getURL.length);
      }
      pos++;
      
  }
  //set outputLink string
  for(var i = 0;i<pos-1;i++)
  {
    //set each outputLink to be link
    outputLink += "<a title =\"go back\" href=\"";
    for(var y=1;y<pos-i;y++)
    {
      outputLink += "../";
    }
    outputLink += holdPart[i]+ "/\">" + ">>"+holdPart[i] + "</a>  >  ";
  }
  //display the path plus current document title

  document.write(outputLink); 
  document.write(document.title);
}

