// JavaScript
function pops(popfile, w, h) 
		{
		var t = screen.availheight/2 - h/2;
		var l = screen.availwidth/2 - w/2;
			window.open(popfile, "", "toolbar=no, directories=no, menubar=no, scrollbars=no, resizable=no, width=" + w + ", height=" + h + ", top=" + t + ", left=" + l + "");
		}

function popsVToolbar(popfile, w, h) 
		{
		var t = screen.availheight/2 - h/2;
		var l = screen.availwidth/2 - w/2;
			window.open(popfile, "", "toolbar=no, directories=no, menubar=no, scrollbars=yes, resizable=no, width=" + w + ", height=" + h + ", top=" + t + ", left=" + l + "");
		}

var lastState = false;
function SetChecked(val)
	{
  dml = document.forms['frmContact'];
  len = dml.elements.length;
  for( var i = 0; i < len; i++)
  	{
   	dml.elements[i].checked=val;
		}
	}           

function toggleDeleteList() {
	lastState == false ? SetChecked(true) : SetChecked(false);
  lastState = lastState == true ? false: true;
  }
