		var msg = null
		var c=0;
		var t;
		var myTimer;
function timedCount(w)
			{				 		
			eval(w);
			}

function HelpPopMaster(num)
{		
try
			{
			stm(Text[num],Style[1]);
			}
			catch(errorObject)
			{
			 if (errorObject.number == -2146823281)
				{
				msg = "There was  an error creating the Help message.\n\n"
				msg += "The Help script for this screen may not be completed.\n"
				msg += "If you have a question, Please use the support menu to contact MailSouth.\n"
				alert(msg)
				return
				}
				else
				{
				msg = "There was  an error on this page.\n\n"
				msg += "An internal programming error may keep\n"
				msg += "this page from displaying properly.\n"
				msg += "Click OK to continue.\n\n"
				
				msg += "Description: " + 
					errorObject.description + 
					"\n\n"
				alert(msg)
				return
					}
			}
}
function PrintFriendly()
{
 var win1 = window.open('', 'Example1');
 try
      {
      
		win1.document.open();
	    }
   catch(errorObject)
      {
      if (errorObject.message.substring(0,6) == 'Access')
      {
       msg = "There was  an error on this page.\n\n"
      msg += "You have Popup blocker activated.\n"
      msg += "Please deactivate Popup blocker.\n"
       alert(msg)
       return
      }
      else
      {
      msg = "There was  an error on this page.\n\n"
      msg += "An internal programming error may keep\n"
      msg += "this page from displaying properly.\n"
      msg += "Click OK to continue.\n\n"
    
      msg += "Description: " + 
        errorObject.description + 
        "\n\n"
      alert(msg)
      return
		}
      }
    var title = this.document.getElementById("_ctl1_PageTitle") 
		win1.document.write('<head><title > MailSouth.net</title></head>');
		win1.document.write('<body>');
		win1.document.body.style.cursor='wait' ;
		win1.document.write('<Table width =100% style="FONT-FAMILY: Arial" >');
		win1.document.write('<Tr><td ><IMG  src="../ImageFiles/MSLogoWithAdvHitsHome.gif"></Tr>');
		win1.document.write('<Tr><td  align=left><font size=4pt > '+ title.innerText + '</font></td></Tr>');
	    win1.document.write('</Table>');
		PrintPageHeader(win1);
		PrintGridRows(win1);

		win1.document.body.style.cursor='auto'
		win1.document.write('</body>')

		win1.print();
		win1.document.close();

}

function PrintGridRows(window1) {
		try
		{
		var oGrid = igtbl_getGridById("UltraWebGrid1");
		
		}
		catch(errorObject)
		{
		return;
		}
		var oRows = oGrid.Rows;
		var total = oRows.length;
		if (total < 1)
		{
		return;
		}
		//window1.document.write('<table style="FONT-SIZE: 10px; FONT-FAMILY: Arial" spacing = 0 CELLSPACING=0 CELLPADDING=0 border=1  border-right: 1px solid; width =100%>')
		window1.document.write('<table style="border-right: lightgrey thin solid; border-top: lightgrey thin solid; font-size: 8px; border-left: lightgrey thin solid; color: black;border-bottom: lightgrey thin solid; font-family: Arial; text-align: center;" spacing = 0 CELLSPACING=0 CELLPADDING=0 width="100%">')
		
		GridHeaderRow(oGrid,window1)		
	
		for(i=0; i<oRows.length ; i++) {
			oRow = oRows.getRow(i);
			window1.document.write('<tr height= 30px >') 
				for(x=0; x<oRow.FirstRow.cells.length ; x++)
					{
			
					if  (oRow.getCell(x).Column.Hidden ||oRow.getCell(x).Column.HeaderText == '[?]')
						{
						}
						else
						{
						if (isblank(oRow.getCell(x).MaskedValue)) 
							{
							window1.document.write('<TD style="border-right: lightgrey thin solid; border-top: lightgrey thin solid; font-size: 8px; border-left: lightgrey thin solid; color: black;border-bottom: lightgrey thin solid; font-family: Arial; text-align: center;" >None</TD>');
							}
							else
							{
							window1.document.write('<TD style="border-right: lightgrey thin solid; border-top: lightgrey thin solid; font-size: 8px; border-left: lightgrey thin solid; color: black;border-bottom: lightgrey thin solid; font-family: Arial; text-align: center;"><b> ' + oRow.getCell(x).MaskedValue + '  <b></TD>');
							}
						}
					}  				     
					
			window1.document.write('</tr>') 
		
			//when we get 19 rows start a new grid on the next page
			if (0 == i % 19 && i > 0 )
			   {
			   	window1.document.write('</table>')
			   	window1.document.write('<p style="PAGE-BREAK-AFTER: ALWAYS"><!--Appendix 2 (continued)--></p>')
				//window1.document.write('<table style="FONT-SIZE: 10px; FONT-FAMILY: Arial" spacing = 0 CELLSPACING=0 CELLPADDING=0 border=1 width =100%>')
				window1.document.write('<table style="border-right: lightgrey thin solid; border-top: lightgrey thin solid; font-size: 8px; border-left: lightgrey thin solid; color: black;border-bottom: lightgrey thin solid; font-family: Arial; text-align: center;" spacing = 0 CELLSPACING=0 CELLPADDING=0 width="100%">')
			
			   GridHeaderRow(oGrid,window1)	
			   } 
		}
		
	window1.document.write('</table>')
	}
function GridHeaderRow(oGrid,window1)
{	
		var oRows = oGrid.Rows;
		var oRow1 = oRows.getRow(0);
		window1.document.write('<tr height=30px>') 
		for(x=0; x<oRow1.FirstRow.cells.length ; x++)
					{
					if  (oRow1.getCell(x).Column.Hidden  ||oRow1.getCell(x).Column.HeaderText == '[?]')
					 {
				      }
				      else
				      {
							window1.document.write('<TD style="border-right: lightgrey thin solid; border-top: lightgrey thin solid; font-size: 8px; border-left: lightgrey thin solid; color: black;border-bottom: lightgrey thin solid; font-family: Arial; text-align: center;"  ><b> ' + oGrid.Bands[0].Columns[x].HeaderText + '  <b></TD>');
					}
				    
				    }
		window1.document.write('<tr>') 
}
function PrintPageHeader(obj)
{
count = 1;
obj.document.write('<table style="FONT-SIZE: 12px; FONT-FAMILY: Arial" width = 100%>')
obj.document.write('<tr><td Width = 15%></td><td Width = 10% ></td><td Width = 3%></td><td Width = 15%></td><td Width = 10% ></td><td Width = 35%></td></TR>')
	for (i=0;i<document.forms(0).elements.length ;i++)
	{
		box = document.forms(0).elements[i];
		if (box.id.substring(0,3)=='txt'||box.id.substring(0,3)=='chk' || box.id.substring(0,3)=='lst' || box.id.substring(0,3)=='DDL' || box.id.substring(0,3)=='ddl') 
		{
		
		  if (box.id.indexOf('_')== -1 || (box.id.substring(0,8) == 'txtStart' && box.id.substring(box.id.length - 6 ,box.id.length == '_input' )) || (box.id.substring(0,6) == 'txtEnd' && box.id.substring(box.id.length - 6 ,box.id.length == '_input' ))  || (box.id.substring(0,7) == 'txtDate' && box.id.substring(box.id.length - 6 ,box.id.length == '_input' )) )
		   {
				if (box.value.length > 0)
				{
					
							if (box.id.substring(0,3)=='chk')
							{
								if (box.status==true)
								{
								if ( count == 1 )
									{
									obj.document.write('<TR>')
									}
								obj.document.write('<TD><b> ' + box.id.substring(3,box.id.length) + '</TD><TD><u>' + box.status + '  </u><b></TD><TD></TD>');
								count = count + 1;
								}
							}
							else
							{
								if ( count == 1 )
									{
									obj.document.write('<TR>')
									}
								if (box.id.indexOf('_')== -1)
								{
									obj.document.write('<TD><b> ' + box.id.substring(3,box.id.length) + '</TD><TD><u>' + box.value + '  </u><b></TD><TD></TD>');
							     }
							     else
							     {
									obj.document.write('<TD><b> ' + box.id.substring(3,box.id.indexOf('_')) + '</TD><TD><u>' + box.value + '  </u><b></TD><TD></TD>');
							     }
							//obj.document.write('<TD><b> ' + box.id.substring(3,box.id.length) + ' ' + box.value + '  <b></TD>');
							count = count + 1;
							}
							
					if ( count == 3)
					{
					obj.document.write('</TR>')
				
					count = 1;
					
					}
				}
			}
		}
	}
	obj.document.write('</table>')
	return true;
}
function isblank(s) {
     for (var i = 0; i < s.length; i++) {
          var c = s.charAt(i);
          if ((c != ' ') && (c != '\n') && (c != '\t')) return false;
          }
     return true;
}

/***********************************************
* Show Hint script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
		
var horizontal_offset="9px" //horizontal offset of hint box from anchor link

/////No further editting needed

var vertical_offset="0" //horizontal offset of hint box from anchor link. No need to change.
var ie=document.all
var ns6=document.getElementById&&!document.all

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="Left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1
if (whichedge=="rightedge"){
var windowedge=ie && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-30 : window.pageXOffset+window.innerWidth-40
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth+parseInt(horizontal_offset)
}
else{
var windowedge=ie && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
}
return edgeoffset
}

function showhint(menucontents, obj, e, tipwidth){
if ((ie||ns6) && document.getElementById("hintbox")){
dropmenuobj=document.getElementById("hintbox")
dropmenuobj.innerHTML=menucontents
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (tipwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=tipwidth
}
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"

dropmenuobj.style.visibility="visible"
obj.onmouseout=hidetip
}
}

function hidetip(e){
dropmenuobj.style.visibility="hidden"
dropmenuobj.style.left="-500px"
// if(igmenu_getElementById("lstDMA") != null )
//	igmenu_getElementById("lstDMA").style.visibility = "visible";
//if(igmenu_getElementById("lstMSA") != null )
//	igmenu_getElementById("lstMSA").style.visibility = "visible";
}

function createhintbox(){
var divblock=document.createElement("div")
divblock.setAttribute("id", "hintbox")
document.body.appendChild(divblock)
}

if (window.addEventListener)
window.addEventListener("load", createhintbox, false)
else if (window.attachEvent)
window.attachEvent("onload", createhintbox)
else if (document.getElementById)
window.onload=createhintbox
