function privacy() 
{
   newWindow = window.open('http://www.cmitsolutions.com/spam/privacy.htm','_privacy','height=365,width=450,resizable=no,status=no,toolbar=no,location=no,scrollbars=no');
}
function errorpop(inhtm) {
	var text = '<p>Please fill out the missing required fields:</p>';
	text += '<ul>';
	text += inhtm + '</ul><br>';
   my_window= window.open ("Missing required fields",
  "mywindow1","status=1,width=350,height=200"); 
   my_window.document.write(text); 
}
function testvalid() {
	o_isclicked = document.getElementById("id_isclicked");
 	o_isclicked.value = 'ok';
}
function checkform() {
	var results = 1;
	var inhtm = '';
	
	o_name = document.getElementById('id_name');
	o_email = document.getElementById('id_email');
	o_isclicked = document.getElementById('id_isclicked');
	
    if (o_name.value == "") {
		inhtm += '<li style="color:red;font-weight:bold;">Name:</li>';
		results = 0;
	}

	if (o_email.value == "") {
		inhtm += '<li style="color:red;font-weight:bold;">E-mail:</li>';
		results = 0;
	}
	if (results == 0) {
		o_isclicked.value = '';
		errorpop(inhtm); 
		return false;
	}
	return true;
}