var NrVideos = 0;
function printPage()
{
//	alert('HOW TO GET A NICE PRINT OUT:  (1) Use landscape orientation.  (2) Use Print Background Colors and Images.   See Guide --> How To... for more information');
	if (confirm('How to get a nice print of your page:\n \n(1) Use landscape orientation.\n(2) Use Print Background Colors and Images.')) 
	   window.print();
}

function addBookmark()
{
	window.external.AddFavorite(document.URL,document.title);
}

var isNav, isIE;
if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName == "Netscape") {isNav = true;}
	else {isIE = true}
}

  function hideObject(obj) {
    if (isNav) obj.visibility = "hide";
	else if (isIE) obj.visibility = "hidden";
  }
  
  // dateValidate(date1, date2) 
  // Returns 1 if date1 i
  
function dateValidate(date1, date2){
  var day1, day2, month1, month2, year1, year2
  var result
  result = -1;                                            // Defualt result is set

  if (date1 == date2){
    result = 0;
  }
  else{

    // The two dates are not equal, split dates and validte!
    day1   = Number(date1.substr(0,2));                 // From day in month
    day2   = Number(date2.substr(0,2));                 // To day in month
    month1 = Number(date1.substr(3,2));
    month2 = Number(date2.substr(3,2));
    year1  = Number(date1.substr(6,4));
    year2  = Number(date2.substr(6,4));
    if (year1<year2){
      result = 1;
    }
    else{
      if ((month1<month2) && (year1 == year2)){
        result = 1;
      }
      else
      {
        if ((day1<=day2) && (month1 == month2) && (year1 == year2)) {
          result = 1;
        }
      }

    }
  }
  return result;

}