/***************************************************************************
	Carols Javascript copyright Global Presence 2002
***************************************************************************/

var popup = null;
function OpenWin ( PAGE, WIDTH, HEIGHT ) 
{
  var winString = "height=" + HEIGHT + ",width=" + WIDTH + ",left=50,top=50,screenX=50,screenY=50,directories=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0" ;
  if (popup != null) {
  	popup.close();
  } 
    popup = window.open( PAGE, "newWin" , winString);
    popup.focus();

}

// hyperlink from popup window activating main browser

function jump(url) {
  opener.location.href = url;
}

function Form_Validator(theForm)
{

  if (theForm.email.value == "")
  {
    alert("Please enter your email address.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value!="") {
	if (theForm.email.value.indexOf("@")==-1 || theForm.email.value.indexOf(".")==-1 || theForm.email.value.indexOf(" ")!=-1 || theForm.email.value.length<6) 
	{
		alert("Please enter a valid email address.");
		theForm.email.focus();
		return (false);
	}
	}
	
    
  return (true);
}

function SendFriend()
{
	var sPageAddress;
	sPageAddress = window.location.href;
  if (popup != null) {
  	popup.close();
  }
    popup = window.open('/sendfriend.asp?ws=McDonald\'s+Carols+by+Candlelight+Christmas+Spectacular&wurl=' + sPageAddress , 'sendWin','toolbar=no,titlebar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,fullscreen=no,scrollbars=no,top=150,left=190,width=465,height=280');
    popup.focus();
}

function doSection (secNum)
{
	if (secNum.style.display=="none") {
		secNum.style.display=""
	}
	else {
		secNum.style.display="none"
	}
}

function noSection (secNum){
	if (secNum.style.display=="") {
		secNum.style.display="none"
	}
}

function displayAll (){

	Detail_1.style.display="";
	Detail_2.style.display="";
	Detail_3.style.display="";
	Detail_4.style.display="";
	Detail_5.style.display="";
	Detail_6.style.display="";

}

function hideAll (){

	Detail_1.style.display="none";
	Detail_2.style.display="none";
	Detail_3.style.display="none";
	Detail_4.style.display="none";
	Detail_5.style.display="none";
	Detail_6.style.display="none";

}

