// DART Random Number (for ads)
ord=Math.random()*10000000000000000;

   //truncate text to the given length, preserving words
   function truncate(text, charCount)
   {
    // make sure the text length is larger than the limit
    if (text.length > charCount)
    {
      ender = text.indexOf(" ", charCount);
      text = text.substr(0, ender);
    }
    return(text);   
   } // END of function truncate
   
   
function isset(varname)  {
  if(typeof( window[ varname ] ) != "undefined"){
    return true;
  }
  else{
    return false;
  }
}
   
   
function skyvibe(sign)
{
  var file = "http://www.tarot.com/astrology/skyvibe/player.php";
  if (sign)
  file += "?sign=" + sign;
  newWindow( file, 780, 490, 0, 0, 'Skyvibe', 'no', 'no' );
}

	var newWin; //declare it out here so it's a global...

	function newWindow( file, w, h, t, l, winName, rsize, scrollb ){
		if( !t ) var t = 10;
		if( !l ) var l = 10;
		if( !w ) var w = 350;
		if( !h ) var h = 300;
		if( !winName ) var winName = "newWindow";
		if( !rsize ) var rsize = "yes";
		if( !scrollb ) var scrollb = "yes";

		newWin = window.open( file, winName, 'scrollbars='+ scrollb +',resizable='+ rsize +',top='+ t +',left='+ l +',height='+ h +',width='+ w);
		newWin.focus();
		if (newWin.opener == null) newWin.opener = self;
	}   
