function delete_it()
{
  if (confirm("Are you sure you want to Permanentaly delete the selected messages?"))
   {

   	  document.boxlist.del.value = "y"
	  document.boxlist.submit() 
   }
}

function read_delete_it()
{
  if (confirm("Are you sure you want to Permanentaly delete the selected messages?"))
   {
   	  document.read_delete.read_del.value = "y"
	  document.read_delete.submit() 
   }
}


function out_delete_it()
{
  if (confirm("Are you sure you want to Permanentaly delete the selected messages?"))
   {
   	  document.boxlist.outdel.value = "y"
	  document.boxlist.submit() 
   }
}

function flag_it()
{

  document.boxlist.del.value = "Nothing"
  document.boxlist.flag.value = "y"
  document.boxlist.mark.value = "Nothing"
  document.boxlist.submit()  
}

function mark_it()
{

  document.boxlist.del.value = "Nothing"
  document.boxlist.flag.value = "Nothing"
  document.boxlist.mark.value = "y"
  document.boxlist.submit()  
}

function fwd_it()
{
  document.Fwd.submit()  
}

function Rep_it()
{
  document.rep.submit()  
}



function OpenAdd(con)
{
	window.open('Popup_Addcontact.asp?contact=' + con ,'','width=550,height=300,scrollbars=yes')
}

function Openhistory(con)
{
	window.open('Contacthistory.asp?tProf=' + con ,'','width=550,height=300,scrollbars=yes')
}


function OpenBlock(con)
{
	window.open('Popup_block.asp?contact=' + con ,'','width=550,height=300,scrollbars=yes')
}

function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,name,url) {//v1.0
 var windowProperties=''; if(nav==false) windowProperties+='toolbar=no,'; else
  windowProperties+='toolbar=yes,'; if(loc==false) windowProperties+='location=no,'; 
 else windowProperties+='location=yes,'; if(sts==false) windowProperties+='status=no,';
 else windowProperties+='status=yes,'; if(menu==false) windowProperties+='menubar=no,';
 else windowProperties+='menubar=yes,'; if(scroll==false) windowProperties+='scrollbars=no,';
 else windowProperties+='scrollbars=yes,'; if(resize==false) windowProperties+='resizable=no,';
 else windowProperties+='resizable=yes,'; if(w!="") windowProperties+='width='+w+',';
 if(h!="") windowProperties+='height='+h; if(windowProperties!="") 
 { 
  	if(windowProperties.charAt(windowProperties.length-1)==',') 
  	 windowProperties=windowProperties.substring(0,windowProperties.length-1); 
 } 
 window.open(url,name,windowProperties);
}


