	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 getmediaopt()
		{
		if (document.mediaopt.player[0].checked)
		{
		media = 'WMP';
		}
		else if (document.mediaopt.player[1].checked)
		{
		media = 'REAL';
		}
		else{
		media='';}
		return media;
		
		}
		
		
function showSpeaker(entity,speakerautonum)	
{

media = getmediaopt();
if (media==''){
alert("Please select media option");
return;
}

    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=BEAR002';
wdth = 700;
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;
}

	