
function Kalert_focus(msg,field)
{

  alert (msg);
  field.focus();
  return;
}

function Kalert_select(msg,field)
{

  alert (msg);
  field.select();
  return;
}

function Kpop1(url,title,width,height,top,left,scroll)
{
if(scroll=='scroll'){
	scroll = 'yes';
}else{
	scroll = 'no';
}

  if (title){

    var newwinobj = window.open(url,title,'status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height+',top='+top+',left='+left+',scrollbars='+scroll);
  }
  else{

    var newwinobj = window.open(url,'','status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height+',top='+top+',left='+left+',scrollbars='+scroll);
  }
  newwinobj.focus();
  return;
}



function Kpop2(url,title,width,height,top,left)
{

  if (title){

    var newwinobj = window.open(url,title,'status=0,menubar=0,scrollbars=1,resizable=0,width='+width+',height='+height+',top='+top+',left='+left);
  }
  else{

    var newwinobj = window.open(url,'','status=0,menubar=0,scrollbars=1,resizable=0,width='+width+',height='+height+',top='+top+',left='+left);
  }
  newwinobj.focus();
  return;
}