function validate()
{
	//Check user's name
	if (document.frmName.txtName.value == '')
	{
		window.alert('Please enter your name.');
		return false;
	}
	//Check company name
	if (document.frmName.txtCompany.value == '')
	{
		window.alert('Please enter a company name.');
		return false;
	}
	//Check email address
	var emailFilter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
	if (!emailFilter.test(document.frmName.txtEmail.value) || document.frmName.txtEmail.value=='')
	{
		window.alert('Please enter a properly formatted email address.');
		return false;
	}
	//return
	document.frmName.submit();
	return true;
}
function check(hour)
{
	if (hour > 12) hour = hour - 12;
	if (hour==0)hour=12;
	return hour;
}
function checkampm(hour)
{
	var ampm = "am";
	if (hour >= 12) ampm = "pm";
	return ampm;
}
function fixzero(num)
{
	if (num <10){num = "0" + num};
	return num;
}
function changeday(formelem)
{
	var strday = formelem.options[formelem.selectedIndex].value;
	self.location = 'agenda.asp?day=' + strday + '&media=' + getmediaopt();
}
function showSpeaker(entity,speakerautonum,media)	
{
    hght = 534;
	wdth = 788;
	strURL = 'launch.asp?entity=' + entity + '&speakernum=' + speakerautonum + '&media=' + media;
    var x=Math.round((window.screen.width-wdth)/2); x = (x < 0) ? 0 : x;
    var y=Math.round((window.screen.height-hght)/2); y = (y < 0) ? 0 : y-20;
   eval("popup=window.open('"+strURL+"','popup','height="+hght+",width="+wdth+",toolbar=no,status=no,directories=no,location=no,scrollbars=no,menubar=no,resizable=yes,top=" + y + ",left=" + x + "');");
   if (!popup.opener) popup.opener = self;
}
function helpwinOpen()
{
	URL= 'http://video.talkpoint.com/help/minimum.jsp?css=cc&cl=LEHM002&insert=yes&email=tsc@talkpoint.com&phone=1-866-709-8255';
	wdth = 650;
	hght =500;
	var x=Math.round((window.screen.width-wdth)/2); x = (x < 0) ? 0 : x;
	var y=Math.round((window.screen.height-hght)/2); y = (y < 0) ? 0 : y-20;
	eval("helppopup=window.open('"+URL+"','helppopup','height="+hght+",width="+wdth+",toolbar=no,status=no,directories=no,location=no,scrollbars=yes,menubar=no,resizable=yes,top=" + y + ",left=" + x + "');");
	if (!helppopup.opener) helppopup.opener = self;
}
function imageError(imageObj)
{
	imageObj.onerror=null;
	imageObj.src = 'images/default_conflogo.jpg';
}
function showflash(strfilename)
{
	document.getElementById("flashvideo").src = "flashvideo.asp?url=" + encodeURI(strfilename);
	document.getElementById("flashvideo").style.visibility="visible";
	//alert(strfilename);
}