<script>
function submitform(start,limit)
{
	document.searchfrm.act.value=document.location.href;
	document.getElementById("start").value=start;
	document.getElementById("limit").value=limit;
		
	//document.searchfrm.action = u;
	
	document.searchfrm.submit();
}
function gotolink(u,exp_id)
{
	document.searchfrm.act.value=document.location.href;
	document.getElementById("exp_id").value=exp_id;
	document.searchfrm.action = u;
	
	document.searchfrm.submit();
}
function PrintFun(ID)
{
	window.open('','formpopup',"height=350,width=600,scrollbars=yes,left=50");
	document.searchfrm.act.value='printevent';
	document.getElementById("exp_id").value=ID;
	document.searchfrm.action = 'printexp';
	document.searchfrm.target = 'formpopup';
	document.searchfrm.submit();
	
}
function EmailToFrined(ID)
{
	window.open('','formpopup',"height=350,width=600,scrollbars=yes,left=50");
	document.searchfrm.act.value='emailevent';
	document.getElementById("exp_id").value=ID;
	document.searchfrm.action = 'emailexp';
	document.searchfrm.target = 'formpopup';
	document.searchfrm.submit();
}
</script>
<form name="searchfrm" id="searchfrm" action="<?php echo $page_name?>" method="post" target="_parent">
<input type="hidden" name="start" id="start" value="<?=$_REQUEST["start"]?>" />
<input type="hidden" name="limit" id="limit" value="<?=$_REQUEST["limit"]?>" />
<input type="hidden" name="act" id="act" value="" />
<input type="hidden" name="exp_id" id="exp_id" value="" />
<table width="99%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td colspan="2" align="left"><span class="td"><a href="index.php" class="bnav">Home</a> &raquo; Sharing Experiences</span></td>
                </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
                </tr>
              <tr>
                <td width="76%"><h2>Sharing Experiences</h2></td>
                <td width="24%" align="right"><table width="100%" border="0" cellspacing="3" cellpadding="0">
                  <tr>
                    <td width="45%" align="center">&nbsp;</td>
                    <td width="55%" align="center"><a href="searchexp" class="button-grey">Search</a></td>
                  </tr>
                </table></td>
                </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
                </tr>
              <tr>
                <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="86%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="subsubtitle"><?php echo $explist->topic?>,</td>
                      </tr>
                      <tr>
                        <td align="right"><span class="td"><strong>- by <?php echo $explist->member?></strong></span></td>
                      </tr>
                    </table></td>
                    <td width="14%" align="center"><?php if($explist->photo!='' and file_exists('./static/uploadfiles/members/'.$explist->photo)){?>
						<img src="./utility/processImage.php?imageName=<?php echo urlencode($explist->photo); ?>&w=80&h=80&mod=4&type=2&<?php echo date("HisdmY");?>" />
					<?php }else{?>
						<img src="images/noimg.jpg" width="80px" height="80px" /></td>
					<?php }?></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td colspan="2" class="font"><?php echo $explist->description?></td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
              
              <tr>
                <td colspan="2" align="center"><table width="30%" border="0" cellspacing="3" cellpadding="0">
                  <tr>
                    <td align="right"><a href="#" class="button1" onclick="PrintFun('<?php echo $explist->id?>');">Print Events</a></td>
                    <td align="center"><a href="#" class="button1" onclick="EmailToFrined('<?php echo $explist->id?>');">Email to Friend</a></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
              </table>
</form>