//Reply post page
function messageReplyWindow(strUrl)
{
	myLytebox = new LyteBox();
	myLytebox.showClose=true;

	var URL = 'http://indianidol.sify.com/messageboard/indianidol_reply.php'+"?"+strUrl;	
	var anchor = this.document.createElement('a');
	anchor.setAttribute('rev', 'width: 480px; height: 350px;scrolling: no;');
	anchor.setAttribute('title', 'Welcome to Indianidol');
	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 -480) / 2;
	  var topVal = (screen.height -350) / 2;
	  newwindow=window.open(URL,'WelcomeToIndianidol','height=350,width=480,scrollbars=no,left='+leftVal+',top='+topVal);
	}

}

//Abuse message
function messageAbuseWindow(strUrl)
{
	myLytebox = new LyteBox();
	myLytebox.showClose=true;
	
	var URL = 'http://indianidol.sify.com/messageboard/abuse_form.php'+"?"+strUrl;	
	var anchor = this.document.createElement('a');
	anchor.setAttribute('rev', 'width: 480px; height: 350px;scrolling: no;');
	anchor.setAttribute('title', 'Welcome to Indianidol');
	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 -480) / 2;
	  var topVal = (screen.height -350) / 2;
	  newwindow=window.open(URL,'WelcomeToIndianidol','height=350,width=480,scrollbars=no,left='+leftVal+',top='+topVal);
	}

}

//Forward Mail
function messageEmailWindow(strUrl)
{
	myLytebox = new LyteBox();
	myLytebox.showClose=true;

	var URL = 'http://indianidol.sify.com/messageboard/indianidol_sendmail.php'+"?"+strUrl;	
	var anchor = this.document.createElement('a');
	anchor.setAttribute('rev', 'width: 480px; height: 350px;scrolling: no;');
	anchor.setAttribute('title', 'Welcome to Indianidol');
	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 -480) / 2;
	  var topVal = (screen.height -350) / 2;
	  newwindow=window.open(URL,'WelcomeToIndianidol','height=350,width=480,scrollbars=no,left='+leftVal+',top='+topVal);
	}

}

