//BUG: COde doesn't work yet, under development
/*
function onLoadHandler(){
attachFormHandlers();
}
window.onload = onLoadHandler();
*/

function popimage(url)
{
	var newwindow=window.open(url,'name','height=400,width=600,toolbar=no,titlebar=no');
	if (window.focus) {newwindow.focus()}
}

function ShowPop(id)
{
   document.getElementById(id).style.visibility = "visible";
}
function HidePop(id)
{
   document.getElementById(id).style.visibility = "hidden";
}


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

function confirmDelete(delUrl) 
{
  if (confirm("Are you sure you want to delete this item?")) 
  {
    document.location = delUrl;
  }
}

