function openMailWindow(C)
{
var A="http://www.sify.com/news/mailpage.php?"+C;
var B=this.document.createElement("a");
B.setAttribute("rev","width: 280px;height: 280px;scrolling: no;");
B.setAttribute("title","Welcome to Sify.com");
B.setAttribute("href",A);
B.setAttribute("rel","lyteframe");
try
 {
  myLytebox.start(B,false,true)
 }
 catch(err)
 {
  var leftVal = (screen.width -278 ) / 2;
  var topVal = (screen.height -252 ) / 2;
  newwindow=window.open(A,'WelcomeToSify','height=280,width=280,scrollbars=no,left='+leftVal+',top='+topVal);
 }

//myLytebox.start(B,false,true)
}

function openPrintWindow(C)
{
var A="http://www.sify.com/news/printer_friendly.php?"+C;
var B=this.document.createElement("a");
B.setAttribute("rev","width: 490px; height: 500px;scrolling: auto;");
B.setAttribute("title","Welcome to Sify.com");
B.setAttribute("href",A);
B.setAttribute("rel","lyteframe");
try
 {
  myLytebox.start(B,false,true)
 }
 catch(err)
 {
  var leftVal = (screen.width -490 ) / 2;
  var topVal = (screen.height -500 ) / 2;
  newwindow=window.open(A,'WelcomeToSify','height=500,width=490,scrollbars=auto,left='+leftVal+',top='+topVal);
 }

//myLytebox.start(B,false,true)
}

function openRateitWindow(C)
{
var A="http://www.sify.com/news/rating.php?"+C;
var B=this.document.createElement("a");
B.setAttribute("rev","width: 300px; height: 280px;scrolling: no;");
B.setAttribute("title","Welcome to Sify.com");
B.setAttribute("href",A);
B.setAttribute("rel","lyteframe");
try
 {
  myLytebox.start(B,false,true)
 }
 catch(err)
 {
  var leftVal = (screen.width -300 ) / 2;
  var topVal = (screen.height -280 ) / 2;
  newwindow=window.open(A,'WelcomeToSify','height=280,width=300,scrollbars=no,left='+leftVal+',top='+topVal);
 }
//myLytebox.start(B,false,true)
};
function openRelatedPopup(strUrl, tags, r)
{
	var URL = 'http://www.sify.com/relatedstories.php'+"?tags="+tags+"&url="+strUrl+"&r="+r;	
	var anchor = this.document.createElement('a');
	anchor.setAttribute('rev', 'width: 320px; height: 320px; scrolling: auto;');
	anchor.setAttribute('title', 'Welcome to Sify.com');
	anchor.setAttribute('href', URL);
	anchor.setAttribute('rel', 'lyteframe');				
	//return false;
	try
	{
		myLytebox.start(anchor,false,true)
	}
	catch(err)
	{
		var leftVal = (screen.width - 350); //-490 ) / 2;
		var topVal =(screen.height - 430); // -500); ) / 2;
		newwindow=window.open(URL,'WelcomeToSify','height=320,width=320,scrollbars=yes,left='+leftVal+',top='+topVal);
	}
}
function openRelatedGalleryPopup(strUrl, tags, r){
	
	var URL = 'http://www.sify.com/relatedgalleries.php'+"?tags="+tags+"&url="+strUrl+"&r="+r;	
	var anchor = this.document.createElement('a');
	anchor.setAttribute('rev', 'width: 320px; height: 320px; scrolling: auto;');
	anchor.setAttribute('title', 'Welcome to Sify.com');
	anchor.setAttribute('href', URL);
	anchor.setAttribute('rel', 'lyteframe');				
	//return false;
	try
	{
		myLytebox.start(anchor,false,true)
	}
	catch(err)
	{
		var leftVal = (screen.width - 350); //-490 ) / 2;
		var topVal =(screen.height - 430); // -500); ) / 2;
		newwindow=window.open(URL,'WelcomeToSify','height=320,width=320,scrollbars=yes,left='+leftVal+',top='+topVal);
	}
}

