function isEmpty( data ){
	for ( var i = 0 ; i < data.length ; i++ ){
		if ( data.substring( i, i+1 ) != " " )
			return false;
	}
	return true;
}
function numCheck(target)
{  var Digit = '1234567890';
   for (i=0 ;i<=target.length ;i++)
   {  if(Digit.indexOf(target.substring(i,i+1)) < 0) 
      {  
   return true;
      }
   }
   return false;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function OpenWindow(target)	{
	var xpos = 0;
	var ypos = 0;
	var w_width = screen.width;
	var w_height = screen.height;
	msgWindow=window.open(target,'msgWin','toolbar=no,status=no,top='+ ypos +',left='+ xpos +',width=' + w_width + ',height=' + w_height +',directories=no,scrollbars=yes,location=no,resizable=no,border=0,menubar=no');
	msgWindow.focus();
}


function allcheck(){
	for( var i=0; i<document.rollform.elements.length; i++) {
		var ele = document.rollform.elements[i];
		if(ele.name == 'checkt')
			ele.checked = true;
	}
	return;
}
function discheck(){
	for( var i=0; i<document.rollform.elements.length; i++) {
		var ele = document.rollform.elements[i];
		if(ele.name == 'checkt')
			ele.checked = false;
	}
	return;
}
