//-----------------------------------------------------------------------

function setPointer(theRow, thePointerColor)
	{
    	if (typeof(theRow.style) == 'undefined') {
        	return false;
    	}

    	if (typeof(document.getElementsByTagName) != 'undefined') {
        	var theCells = theRow.getElementsByTagName('td');
    	}

    	else if (typeof(theRow.cells) != 'undefined') {
        	var theCells = theRow.cells;
    	}
    
		else {
        	return false;
    	}

    	var rowCellsCnt  = theCells.length;

    	if (thePointerColor == '') {
    		for (var c = 0; c < rowCellsCnt; c++) {
        		theCells[c].style.backgroundColor = '';
    		}
		}
		
		else {
			for (var c = 0; c < rowCellsCnt; c++) {
        		theCells[c].style.backgroundColor = thePointerColor;
    		}
		}

    	return true;
} // end of the 'setPointer()' function

//-----------------------------------------------------------------------

function validateMail(checkMail){
	var str=checkMail
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

	if (filter.test(str))
		testresults=true
	else
	{
		testresults=false
	}
	return (testresults)
} // end of the 'validateMail()' function

//-----------------------------------------------------------------------

function printArticle(id)
{
	X = (screen.availWidth-750)/2;
	Y = (screen.availHeight-550)/2;
	Win = window.open("print_article.php?id="+id,"PRINT_WIN",'width=750,height=550,screenX='+X+',left='+X+',screenY='+Y+',top='+Y+',fullscreen=no,resizable=no,scrollbars=yes,menubar=no,directories=no,location=no,status=no');
}// end of the 'printArticle()' function

//-----------------------------------------------------------------------

function printAbstract(id)
{
	X = (screen.availWidth-750)/2;
	Y = (screen.availHeight-550)/2;
	Win = window.open("print_abstract.php?id="+id,"PRINT_WIN",'width=750,height=550,screenX='+X+',left='+X+',screenY='+Y+',top='+Y+',fullscreen=no,resizable=no,scrollbars=yes,menubar=no,directories=no,location=no,status=no');
}// end of the 'printAbstract()' function

//-----------------------------------------------------------------------

function printPaper(id)
{
	X = (screen.availWidth-750)/2;
	Y = (screen.availHeight-550)/2;
	Win = window.open("print_paper.php?id="+id,"PRINT_WIN",'width=750,height=550,screenX='+X+',left='+X+',screenY='+Y+',top='+Y+',fullscreen=no,resizable=no,scrollbars=yes,menubar=no,directories=no,location=no,status=no');
}// end of the 'printPaper()' function

//-----------------------------------------------------------------------

function printSubpage(id)
{
	X = (screen.availWidth-750)/2;
	Y = (screen.availHeight-550)/2;
	Win = window.open("print_subpage.php?id="+id,"PRINT_WIN",'width=750,height=550,screenX='+X+',left='+X+',screenY='+Y+',top='+Y+',fullscreen=no,resizable=no,scrollbars=yes,menubar=no,directories=no,location=no,status=no');
}// end of the 'printSubpage()' function

//-----------------------------------------------------------------------

function printParticipants(id)
{
	X = (screen.availWidth-750)/2;
	Y = (screen.availHeight-550)/2;
	Win = window.open("print_participants.php?id="+id,"PRINT_WIN",'width=750,height=550,screenX='+X+',left='+X+',screenY='+Y+',top='+Y+',fullscreen=no,resizable=no,scrollbars=yes,menubar=no,directories=no,location=no,status=no');
}// end of the 'printParticipants()' function

//-----------------------------------------------------------------------

function printPapers(id)
{
	X = (screen.availWidth-750)/2;
	Y = (screen.availHeight-550)/2;
	Win = window.open("print_papers.php?id="+id,"PRINT_WIN",'width=750,height=550,screenX='+X+',left='+X+',screenY='+Y+',top='+Y+',fullscreen=no,resizable=no,scrollbars=yes,menubar=no,directories=no,location=no,status=no');
}// end of the 'printPapers()' function

//-----------------------------------------------------------------------

function printAbstracts(id)
{
	X = (screen.availWidth-750)/2;
	Y = (screen.availHeight-550)/2;
	Win = window.open("print_abstracts.php?id="+id,"PRINT_WIN",'width=750,height=550,screenX='+X+',left='+X+',screenY='+Y+',top='+Y+',fullscreen=no,resizable=no,scrollbars=yes,menubar=no,directories=no,location=no,status=no');
}// end of the 'printPapers()' function

//-----------------------------------------------------------------------

function printChecklist()
{
	X = (screen.availWidth-750)/2;
	Y = (screen.availHeight-550)/2;
	Win = window.open("print_checklist.php","PRINT_WIN",'width=750,height=550,screenX='+X+',left='+X+',screenY='+Y+',top='+Y+',fullscreen=no,resizable=no,scrollbars=yes,menubar=no,directories=no,location=no,status=no');
}// end of the 'printChecklist()' function

//-----------------------------------------------------------------------

