function printEntry(entryID)	{
   var width=780;
   var height=420;
   var left=(screen.availWidth - width) / 2;
   var top=(screen.availHeight - height) / 2;
   window.open('printentry.cfm?print='+entryID, 'print', 'top=' + top + ', left=' + left + ', scrollbars=yes,resizable=no,toolbar=yes,location=no,width='+width+',height='+height+'');
}
function displayComments(entryID) {
   var width=420;
   var height=420;
   var left=(screen.availWidth - width) / 2;
   var top=(screen.availHeight - height) / 2;
   window.open('comments.cfm?entryID='+entryID, 'comments', 'top=' + top + ', left=' + left + ', scrollbars=yes,resizable=yes,toolbar=no,location=no,width='+width+',height='+height+'');
}
function checkCommentsForm()	{
	var emailRegex=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/;
	if(document.addComment.poster.value.length==0)	{
		alert('Please enter your Name!');
		return false;
	} else if(document.addComment.posterEmail.length==0||emailRegex.test(document.addComment.posterEmail.value)==false)	{
		alert('Please enter your Email!');
		return false;
	} else if(document.addComment.comment.value.length==0)	{
		alert('Please enter your Comment!');
		return false;
	} else {
		return true;
	}
}
function checkEmailSubscriptionForm()	{
	var emailRegex=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/;
	if(document.emailSubscriber.emailAddress.length==0||emailRegex.test(document.emailSubscriber.emailAddress.value)==false)	{
		alert('Please enter your Email!');
		return false;
	} else {
		return true;
	}
}

function video480_240(URL) {
day = new Date();
id = "temp";
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=480,height=275,left = 300,top = 200');");
}

function webcam(URL) {
day = new Date();
id = "temp";
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=660,height=500,left = 300,top = 200');");
}
