var testresults
function checkemail()
{
	var str=document.happyform.poster_mail.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (filter.test(str))
	{
		testresults=true
	}
	else
	{
		alert("Please input a valid email address!");
		testresults=false;
	}
	return (testresults);
}

function checkbae()
{
	if (document.layers||document.getElementById||document.all)
	{
		return checkemail();
	}
	else
	{
		return true;
	}
}

function pop_open(webUrl, width, height)
{
  winner = window.open(webUrl,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);
  winner.focus();
}

function newWindow(myFile)
{
	flashWindow = window.open(myFile,'flaWin','resizable=yes,scrollbars=no,width=570,height=405,left= 150,top= 100')
	flashWindow.focus();
}

function openGalleryComment(webUrl)
{
	pop_open(webUrl, 720,455);
}

function openMapImage(webUrl)
{
	pop_open(webUrl, 720,500);
	// '570','460')");
}

function openMapComment(webUrl)
{
	pop_open(webUrl, 720,500);
//	'570','405')");
}