// POPUP

function checkform ( form )
{
  if (form.code.value == "") {
    alert( "Please enter security code." );
    form.email.focus();
    return false ;
  }
  // ** END **
  return true ;
}

function NormalPopup(url, naam, width, height, scroll) {
	window.open(url,naam,'width='+width+',height='+height+',location=no,scrollbars='+scroll+',menubars=no,toolbars=no,resizable=no');
}

function popup(url) 
{
 var width  = 1000;
 var height = 1000;
 var left   = (screen.width  - width)/2;
 var top    = ((screen.height - height)/2)-30;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=yes';
 params += ', status=yes';
 params += ', toolbar=no';
 newwin=window.open(url,'windowname5', params);
 if (window.focus) {newwin.focus()}
 return false;
}

function popupform(myform, windowname)
{
if (! window.focus)return true;

 var width  = 900;
 var height = 800;
 var left   = (screen.width  - width)/2;
 var top    = ((screen.height - height)/2)-30;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=yes';
 params += ', status=yes';
 params += ', toolbar=no';

window.open('', windowname, params);
myform.target=windowname;
document.location.reload();
return true;
}


function popup_fullscreen(url) 
{
 params  = 'width='+screen.width+'-10';
 params += ', height='+screen.height;
 params += ', top=0, left=0'
 params += ', fullscreen=yes';
 params += ', directories=yes';
 params += ', location=yes';
 params += ', menubar=yes';
 params += ', scrollbars=yes';
 params += ', status=yes';
 params += ', toolbar=yes';

 newwin=window.open(url,'windowname4', params);
 if (window.focus) {newwin.focus()}
 return false;
}
