var joining = 0;



function byeBye() {

    if (joining == 0) { 

	    girlfriends = window.open('','girlfriend','height=520,width=760,scrollbars=1,resizable=1,toolbar=1')

		girlfriends.moveTo(0,0);

		girlfriends.blur();

		girlfriends.resizeTo(screen.availWidth,screen.availHeight);

		girlfriends.location="/autorank/girlfriends.shtml";

	

	    girlfriends2 = window.open('','girlfriend2')

		girlfriends2.moveTo(0,0);

		girlfriends2.blur();

		girlfriends2.resizeTo(screen.availWidth,screen.availHeight);

		girlfriends2.location="/cgi-bin/autorank/girlfriends.pl";

	}

}



function openMe(location,width,height) { // opens a pop-up window to view the photos.

  pics=window.open(location,'picture',"width=" + width + ",height=" + height + ",resizable=1,scrollbars=1,top=1,left=1");

  pics.document.bgColor='#004F75';

  pics.moveTo(0,0);

  pics.focus();

}



function openWin(location,width) { // opens a pop-up window to view the photos.

  var newHeight;

  

  if (screen.availHeight < 420) { 

      newHeight = screen.availHeight;

  } else { 

      newHeight = screen.availHeight - 40;

  }

  

  pics=window.open(location,'Win',"width=" + width + ",height=" + newHeight + ",resizable=1,scrollbars=1,top=1,left=1");

  //pics.document.bgColor='#004F75';

  pics.moveTo(0,0);

  pics.focus();

}



function addBookMark(){

    if(document.all);

	window.external.AddFavorite('http://www.absolutekim.com/diary_preview.html','AbsoluteKims Daily Diary');

}



// get the date information

//

date = new Date();

month = new String;

day = new String;

year = new String;



month = date.getMonth()

day = date.getDate()



// This is the y2k fixer function--don't worry about how this works,

// but if you want it in your scripts, you can cut and paste it. 

//

 function y2k(number) { 

return (number < 1000) ? number + 1900 : number;

}



// Get the year and fix the y2k bug using the fixer function.

//

year = y2k(date.getYear())



// Translate the number of the month to a word--so 0 becomes January.

// Notice that I've cut months 3 to 10 to save space.  if you want to

// run this example, you'll have to put those in place of the ellipsis, . . .

//

if (month == "0")

	month = "January";

	else

if (month == "1")

	month = "February";

	else

if (month == "2")

	month = "March";

	else

if (month == "3")

	month = "April";

	else

if (month == "4")

	month = "May";

	else

if (month == "5")

	month = "June";

	else

if (month == "6")

	month = "July";

	else

if (month == "7")

	month = "August";

	else

if (month == "8")

	month = "September";

	else

if (month == "9")

	month = "October";

	else

if (month == "10")

	month = "November";

	else

if (month == "11")

	month = "December";



