				   function WriteCurrentPath()
					   {
						
						 //document.write("HSOC Home >> " ); 
						
						var baseURL = 'http://' + location.hostname;
						//alert('baseURL = ' + baseURL); 		
  						var myPath = location.pathname;	
						//alert('location.pathname=' + myPath);
						var folderName=myPath.split("/"); //split using blank space as delimiter
						
						//write home page path
						document.write("<a href='http://hsoc.missouri.org'>");
						document.write("HSOC Home</a>");
						
						for (i=1; i<folderName.length-1; i++)
						//{alert('folderName # ' + i + ' = ' + folderName[i]) //alerts "Welcome", "to", "JavaScript", and "Kit"
						{
						document.write(" >> ");
						baseURL = baseURL + '/' + folderName[i];
						document.write("<a href='" + baseURL + "'>");
						//replace "_" with " "  in folder name 
						////var mytext = 'xXyY';
						////var myresult = replace(mytext,'X','Y');
						document.write(replace(folderName[i],'_',' ') + "</a>");
						
							
						//document.write("<a href='testing/%22%20%2B%20words%5Bi%5D%20%2B%20%22'>";
						//document.write("<a href='" + "http://www.google.com" + "'>google</a>")
												//document.write( words[i] + "</a> >> " );
						}
						//now the current page
						document.write(" >> " + document.title);
            
						//alert('document title=' + document.title);
						
					   }
					   
					   function WriteCurrentDate()
					   {			
						Style = 3; //pick a style from below

						/*------------------------------
						Style 1: March 17, 2000
						Style 2: Mar 17, 2000
						Style 3: Saturday March 17, 2000
						Style 4: Sat Mar 17, 2000
						Style 5: Sat March 17, 2000
						Style 6: 17 March 2000
						Style 7: 17 Mar 2000
						Style 8: 17 Mar 00
						Style 9: 3/17/00
						Style 10: 3-17-00
						Style 11: Saturday March 17
						--------------------------------*/
						
						months = new Array();
						months[1] = "January";  months[7] = "July";
						months[2] = "February"; months[8] = "August";
						months[3] = "March";    months[9] = "September";
						months[4] = "April";    months[10] = "October";
						months[5] = "May";      months[11] = "November";
						months[6] = "June";     months[12] = "December";
						
						months2 = new Array();
						months2[1] = "Jan"; months2[7] = "Jul";
						months2[2] = "Feb"; months2[8] = "Aug";
						months2[3] = "Mar"; months2[9] = "Sep";
						months2[4] = "Apr"; months2[10] = "Oct";
						months2[5] = "May"; months2[11] = "Nov";
						months2[6] = "Jun"; months2[12] = "Dec";
						
						days = new Array();
						days[1] = "Sunday";    days[5] = "Thursday";
						days[2] = "Monday";    days[6] = "Friday";
						days[3] = "Tuesday";   days[7] = "Saturday";
						days[4] = "Wednesday";
						
						days2 = new Array();
						days2[1] = "Sun"; days2[5] = "Thu";
						days2[2] = "Mon"; days2[6] = "Fri";
						days2[3] = "Tue"; days2[7] = "Sat";
						days2[4] = "Wed";
						
						todaysdate = new Date();
						date  = todaysdate.getDate();
						day  = todaysdate.getDay() + 1;
						month = todaysdate.getMonth() + 1;
						yy = todaysdate.getYear();
						year = (yy < 1000) ? yy + 1900 : yy;
						year2 = 2000 - year; year2 = (year2 < 10) ? "0" + year2 : year2;
						
						dateline = new Array();
						dateline[1] = months[month] + " " + date + ", " + year;
						dateline[2] = months2[month] + " " + date + ", " + year;
						dateline[3] = days[day] + " " + months[month] + " " + date + ", " + year;
						dateline[4] = days2[day] + " " + months2[month] + " " + date + ", " + year;
						dateline[5] = days2[day] + " " + months[month] + " " + date + ", " + year;
						dateline[6] = date + " " + months[month] + " " + year;
						dateline[7] = date + " " + months2[month] + " " + year;
						dateline[8] = date + " " + months2[month] + " " + year2;
						dateline[9] = month + "/" + date + "/" + year2;
						dateline[10] = month + "-" + date + "-" + year2;
						dateline[11] = days[day] + " " + months[month] + " " + date;
						document.write(dateline[Style]);
						}
						
						function replace(string,text,by) {
						// Replaces text with by in string
							var strLength = string.length, txtLength = text.length;
							if ((strLength == 0) || (txtLength == 0)) return string;
						
							var i = string.indexOf(text);
							if ((!i) && (text != string.substring(0,txtLength))) return string;
							if (i == -1) return string;
						
							var newstr = string.substring(0,i) + by;
						
							if (i+txtLength < strLength)
								newstr += replace(string.substring(i+txtLength,strLength),text,by);
						
							return newstr;
						}
						
						function openWindow(url,w,h,tb,stb,l,mb,sb,rs,x,y){
							var t=(document.layers)? ',screenX='+x+',screenY='+y: ',left='+x+',top='+y; //A LITTLE CROSS-BROWSER CODE FOR WINDOW POSITIONING
							tb=(tb)?'yes':'no'; stb=(stb)?'yes':'no'; l=(l)?'yes':'no'; mb=(mb)?'yes':'no'; sb=(sb)?'yes':'no'; rs=(rs)?'yes':'no';
							var x=window.open(url, 'newWin'+new Date().getTime(), 'scrollbars='+sb+',width='+w+',height='+h+',toolbar='+tb+',status='+stb+',menubar='+mb+',links='+l+',resizable='+rs+t);
							x.focus();
							
							//Example: This link opens a new window using the code above. 
							//You would call this function by using a pseudo url like: <a href="javascript:openWindow( 'http://scriptasylum.com', 200, 200 ,0 ,0 ,0 ,0 ,0 ,1 ,10 ,10 )">Link text here</a> 
							//Usage: openWindow( url , w , h , tb , stb , L , mb , sb , rs , x , y ) 
							
							//url - The URL of the page to open. Example: "http://scriptasylum.com". 
							//w - The width of the window in pixels. 
							//h - The height of the window in pixels (doesn't include menubars). 
							//tb - Toolbar visible? 1 = yes, 0 = no. 
							//stb - Status bar visible? 1 = yes, 0 = no. 
							//L - Linkbar visible? 1 = yes, 0 = no. 
							//mb - Menubar visible? 1 = yes, 0 = no. 
							//sb - Scrollbars visible? 1 = yes, 0 = no. 
							//rs - Resizable window? 1 = yes, 0 = no. 
							//x - The horizontal position of the window from the left of the screen. 
							//y - The vertical position of the window from the top of the screen. 
							}
							
							function validateUser(p){
							if (p == "tenAPHA")
								{
								 window.location="ePlanner/"
								 alert ("Welcome to the ePlanner Portal");
								}
								else
								{
								alert ("Either the userID or Password is incorrect");
								}
								
							}

							
							

			
				
			
			