function CreateWaitBox(lnkType)
{
	var subUnsubLnk = "";
	if(lnkType=="U")
		subUnsubLnk = "http://mail.data.in/admin/addingMailGroup.jsp?session_id=12595863464860";
	else
		subUnsubLnk = "http://mail.data.in/admin/addingMailGroup.jsp?session_id=12595863464861";

	var WaitBoxStr = "";
	//WaitBoxStr = "<div style=\"position: absolute; width: 511px; height: 202px; z-index: 1; left: 208px; top: 102px; border-style: solid; border-width: 1px; background-color: #CDF3FF; display:block\" id=\"dSubUnSub1\">";
	WaitBoxStr = "<div style=\"width: 511px; height: 202px; z-index: 9999; border-style: solid; border-width: 1px; background-color: #CDF3FF; display:block\" id=\"dSubUnSub1\">";
	WaitBoxStr += "	<table border=\"0\" width=\"509\" id=\"table1\" cellspacing=\"1\">";
	WaitBoxStr += "		<tr>";
	WaitBoxStr += "			<td width=\"286\">";
	WaitBoxStr += "			<p style=\"margin-left: 8px; margin-right: 8px\">";
	WaitBoxStr += "			<font face=\"Arial\" size=\"2\" color=\"#0074C1\"><b>Subscribe News Letter ";
	WaitBoxStr += "			Now</b></font></td>";
	WaitBoxStr += "			<td width=\"216\">";
	WaitBoxStr += "			<p align=\"right\" style=\"margin-left: 8px; margin-right: 8px\">";
	WaitBoxStr += "			<img border=\"0\" src=\"images/1close.gif\" onclick=\"closeBox()\" style=\"cursor:pointer\" width=\"16\" height=\"16\"></td>";
	WaitBoxStr += "		</tr>";
	WaitBoxStr += "		<tr>";
	WaitBoxStr += "			<td width=\"505\" colspan=\"2\">";
	WaitBoxStr += "			<p align=\"center\">";
	WaitBoxStr += "			<iframe name=\"ifrm\" id=\"ifrm\" width=\"491\" height=\"160\" src=\""+subUnsubLnk+"\" border=\"0\" frameborder=\"0\" scrolling=\"no\">";
	WaitBoxStr += "			Your browser does not support inline frames or is currently configured not to display inline frames.";
	WaitBoxStr += "			</iframe></td>";
	WaitBoxStr += "		</tr>";

	WaitBoxStr += "<tr>";
	WaitBoxStr += "			<td width=\"505\" colspan=\"2\">";
	WaitBoxStr += "			<p align=\"right\" style=\"margin-left: 8px; margin-right: 8px\">";
	WaitBoxStr += "			<font face=\"Arial\" style=\"font-size: 9pt; font-weight: 700\" color=\"#800000\">";
	WaitBoxStr += "			<a href=\"#?\" onclick=\"showUnsubscribe()\"><font color=\"#800000\">Unsubscribe</font></a></font></td>";
	WaitBoxStr += "		</tr>";



	WaitBoxStr += "	</table>";
	WaitBoxStr += "</div>";

	return WaitBoxStr;
}
function closeBox()
{
	var o=document.getElementById("dSubUnSub");
	var r=o.style; 
	r.display = "none"; 
}

function showUnsubscribe()
{
	var o=document.getElementById("ifrm");
	o.src="http://mail.data.in/admin/addingMailGroup.jsp?session_id=12595863464860";
}



function divInCenter(Xwidth,Yheight,divid,lnkType) { 
	// First, determine how much the visitor has scrolled
	var scrolledX, scrolledY; 
	if( self.pageYoffset ) { 
	scrolledX = self.pageXoffset; 
	scrolledY = self.pageYoffset; 
	} else if( document.documentElement && document.documentElement.scrollTop ) { 
	scrolledX = document.documentElement.scrollLeft; 
	scrolledY = document.documentElement.scrollTop; 
	} else if( document.body ) { 
	scrolledX = document.body.scrollLeft; 
	scrolledY = document.body.scrollTop; 
	}

	// Next, determine the coordinates of the center of browser's window
	var centerX, centerY; 
	if( self.innerHeight ) { 
	centerX = self.innerWidth; 
	centerY = self.innerHeight; 
	} else if( document.documentElement && document.documentElement.clientHeight ) { 
	centerX = document.documentElement.clientWidth; 
	centerY = document.documentElement.clientHeight; 
	} else if( document.body ) { 
	centerX = document.body.clientWidth; 
	centerY = document.body.clientHeight; 
	}

	// Xwidth is the width of the div, Yheight is the height of the 
	// div passed as arguments to the function: 
	var leftoffset = scrolledX + (centerX - Xwidth) / 2; 
	var topoffset = scrolledY + (centerY - Yheight) / 2; 
	// The initial width and height of the div can be set in the 
	// style sheet with display:none; divid is passed as an argument to // the function 

	
	var o=document.getElementById(divid); 
	o.innerHTML = CreateWaitBox(lnkType);
	var r=o.style; 
	r.position='absolute'; 
	r.top = topoffset + 'px'; 
	r.left = leftoffset + 'px'; 
	r.display = "block"; 
}
