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

	var URL = 'http://sify.com/news/election/messageboard/kbm_reply.php'+"?"+strUrl;	
	var anchor = this.document.createElement('a');
	anchor.setAttribute('rev', 'width: 480px; height: 250px;scrolling: no;');
	anchor.setAttribute('title', 'Welcome to KaunBanegaMukhyamantri');
	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,'WelcomeToKaunBanegaMukhyamantri','height=250,width=480,scrollbars=no,left='+leftVal+',top='+topVal);
	}

}

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

}

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

	var URL = 'http://sify.com/news/election/messageboard/kbm_sendmail.php'+"?"+strUrl;	
	var anchor = this.document.createElement('a');
	anchor.setAttribute('rev', 'width: 480px; height: 260px;scrolling: no;');
	anchor.setAttribute('title', 'Welcome to KaunBanegaMukhyamantri');
	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,'WelcomeToKaunBanegaMukhyamantri','height=260,width=480,scrollbars=no,left='+leftVal+',top='+topVal);
	}

}

