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

}


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

}
function openRateitWindow(strUrl)
{
			var URL = 'http://www.sify.com/sports/rating.php'+"?"+strUrl;	
			var anchor = this.document.createElement('a');
			anchor.setAttribute('rev', 'width: 300px; height: 280px;scrolling: no;');
			anchor.setAttribute('title', 'Welcome to Sify.com');
			anchor.setAttribute('href', URL);
			anchor.setAttribute('rel', 'lyteframe');				
			//myLytebox.start(anchor, false, true);	
			try
			 {
			  myLytebox.start(anchor,false,true)
			 }
			 catch(err)
			 {
			  var leftVal = (screen.width -300 ) / 2;
			  var topVal = (screen.height -280 ) / 2;
			  newwindow=window.open(URL,'WelcomeToSify','height=280,width=300,scrollbars=no,left='+leftVal+',top='+topVal);
			 }

}
function openPostInfo(strUrl,w,h)
{
        window.open("/"+strUrl, 'postInfoWin', 'width='+w+',height='+h+',scrollbars=no,left=300,top=200');
}
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);
	 }
}


