<!--//--><![CDATA[//><!--
function getCookie(name){
  var cname = name + "=";               
  var dc = document.cookie;             
  if (dc.length > 0) {              
    begin = dc.indexOf(cname);       
    if (begin != -1) {           
      begin += cname.length;       
      end = dc.indexOf(";", begin);
      if (end == -1) end = dc.length;
        return unescape(dc.substring(begin, end));
    } 
  }
  return null;
}

function setCookie(name, value, expires, path, domain, secure) {
  document.cookie = name + "=" + escape(value) + 
  ((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
  ((path == null) ? "" : "; path=" + path) +
  ((domain == null) ? "" : "; domain=" + domain) +
  ((secure == null) ? "" : "; secure");

}

function covertMonth(x) {
	var currMonth;
	
	switch(x) {
		case 0:
			currMonth = "Jan";
			break;
		case 1:
			currMonth = "Feb";
			break;
		case 2:
			currMonth = "Mar";
			break;
		case 3:
			currMonth = "Apr";
			break;
		case 4:
			currMonth = "May";
			break;
		case 5:
			currMonth = "Jun";
			break;
		case 6:
			currMonth = "Jul";
			break;
		case 7:
			currMonth = "Aug";
			break;
		case 8:
			currMonth = "Sep";
			break;
		case 9:
			currMonth = "Oct";
			break;
		case 10:
			currMonth = "Nov";
			break;
		case 11:
			currMonth = "Dec";
			break;
    }	//end switch
	return currMonth;
} //convertMonth

function getNextDate() {
	thisDate = new Date();
	nextDate = new Date();
	thisDay = thisDate.getDate();		//get current day
	thisMonth = thisDate.getMonth();	//get current month
	thisYear = thisDate.getFullYear();	//get current year
	
	nextDate.setDate(thisDay + 1);		//set next day
	if (nextDate.getDate() != (thisDay + 1) ) {
		nextDate.setMonth(thisMonth+1);		//set to next month
		if (nextDate.getMonth() != (thisMonth + 1)) {
			nextDate.setFullYear(thisYear + 1);		//set to next year
		}
	}
	return nextDate;
} 	//end getNextDate

var newwindow;
function checkCountry(f)
{
       var e=f.options[f.selectedIndex].value;
       //alert(e);
       if(e!="United States" && e!="Canada"){
          ski_window("window2.html");
	   }
}

function ski_window(url) {
    var w=window.screen.availWidth/3;
	//w=250;
    if(navigator.userAgent.indexOf("MSIE") == -1) {
       newwindow = window.open(url,"ski","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizeable=yes,left="+w+",top=100,screenX="+w+",screenY=100,width=400,height=240");
       newwindow.focus();

    } else {
      newwindow = window.open(url,"ski","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizeable=yes,left="+w+",top=100,screenX="+w+",screenY=100,width=400,height=240");
    }

}	

<!-- //Open BBBOnline verification windows.
function Rcertify() 
{
popupWin = window.open('http://www.bbbonline.org/cks.asp?id=915000067', 'Participant','location=yes,scrollbars=yes,width=450,height=300'); 
window.name = 'opener';
} 

function Pcertify() 
{
popupWin = window.open('http://www.bbbonline.org/cks.asp?id=3311999040000', 'Participant','location=yes,scrollbars=yes,width=450,height=300'); 
window.name = 'opener';
} 

//--><!]]>