//Function for javscript links
function pop(url) 
{
	window.open(url,"","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1"); 	
}

//Function for setting the cookie
function setCookie(name) 
{
	
	var quickexpdate = new Date();
	quickexpdate.setTime(quickexpdate.getTime() + 1*60*60*1000); //for one hour
    document.cookie = name + "=On;expires=" + quickexpdate.toGMTString();
}

//Function to get the cookie
function getCookie(name) 
{
   var index = document.cookie.indexOf(name + "=");
   if (index == -1) return null;
      index = document.cookie.indexOf("=", index) + 1;
   var endstr = document.cookie.indexOf(";", index);
   if (endstr == -1) endstr = document.cookie.length;
      return unescape(document.cookie.substring(index, endstr));
}

//checks for the existance of the cookie
//Requires goNewWin, getCookie, setCookie
function CheckCook(name)
{
	if(!getCookie(name)) 
	{
		setCookie(name);
		goNewWin();
	}
}

//function for opening window
function openWin(theURL,winName,features) 
{ 
	window.open(theURL,winName,features); 
} 

var dayName = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monName = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var now = new Date;
var url = "http://www.blackjack-babe.com";
var who = "Blackjack Babe\'s Online Blackjack ";
var ver = navigator.appName;
var num = parseInt(navigator.appVersion);

function bookmark() {
	if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
	document.write('<A HREF="javascript:window.external.AddFavorite(url,who);" ');
	document.write('onMouseOver=" window.status=');
	document.write("'Bookmark This Site'; return true ");
	document.write('"onMouseOut=" window.status=');
	document.write("' '; return true ");
	document.write('">Bookmark This Site</a>');
	}else{
	document.write('Bookmark This Site (Ctrl+D)');
	} 
}

