// JavaScript Document
function checkEmail(mail) 
{
	var email = mail;
	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(email.value)) 
	{
		return false;
	}
	else return true;
}

function CheckAll(id) 
{
	var rows = document.getElementsByTagName('input');
	var checkbox;
	for ( var i = 0; i < rows.length; i++ ) 
	{
		checkbox = rows[i];
		if ( checkbox && checkbox.type == 'checkbox' && checkbox.id==id) 
		{
			checkbox.checked = !checkbox.checked;
		}
	}
	return true;
}
function PopupWindow(url,title,width,height)
{
	var myBars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no'; 
	var myOptions = 'scrollbars=yes,width='+width+',height='+height+',resizeable=yes'; 
	var myFeatures = myBars + ',' + myOptions; 
	var wnd = open(url,title,myFeatures); 
}
function EffectWindow(url)
{
	window.onload = Shadowbox.init;	
}
