imagename='';

function goMark(id)
{
	var con=confirm("Are you sure you want to FLAG this message?");
	if(con)
	{
		document.forms[0].action="mark.php?d="+id;
		document.forms[0].submit();
	}
	
}

function goUnMark(id)
{
	var con=confirm("Are you sure you want to REMOVE FLAG?");
	if(con)
	{
		document.forms[0].action="mark.php?d="+id+"&um=1";
		document.forms[0].submit();
	}
	
}

function enlrge(imgnme) {
    lrgewin=window.open("about:blank","","height=200,width=200")
    imagename=imgnme;
    setTimeout('update()',500)
}

function update() 
{
    doc=lrgewin.document;
    doc.open('text/html');
    doc.write('<HTML><HEAD><TITLE>Large Image<\/TITLE><\/HEAD><BODY bgcolor="white" onLoad="if  (self.resizeTo)self.resizeTo((document.images[0].width+10),(document.images[0].height+150))" topmargin="4" leftmargin="0" rightmargin="0" bottommargin="0"><table width=""' + document.images[0].width + '" height="' + document.images[0].height +'"border="0" cellspacing="0" cellpadding="0"><tr><td>');
    doc.write('<IMG SRC="' + imagename + '"><\/td><\/tr><tr><td align="center"><form name="viewn"><input type="button"   value="Close Window" onClick="self.close()"><\/td><\/tr><\/table>');
    doc.write('<\/form><\/BODY><\/HTML>');
    doc.close();
}
