// JavaScript Document
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
var popUpWin1=0;
function popUpWindow1(URLStr, left, top, width, height)
{
 if(popUpWin1)
  {
    if(!popUpWin1.closed) popUpWin1.close();
  }
  popUpWin1 = open(URLStr, 'popUpWin1', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function validate(test)
{
	if (test.title.value == "")
	{
		alert ("Kindly enter the title");
		return false;
	}
}
function checks()
{
	field = document.frmview.chk;

	if (field.checked)
	{
//		alert("Checkbox at index is checked!")
		return true;
	}
	for (i=0; i<field.length; i++){
	if (field[i].checked == true)
		return true;
//		alert("Checkbox at index "+i+" is checked!")
	}
	alert("Please select any title");
	return false;
}