Hi

Can somebody please help with this statement I seem to have not quite got it right.

Code PHP:
<?php
 
 
if($c=='1');
 
  {
 
   echo ("<input type="image" onClick="javascript:window.location.href='<?=$pre?>enquiry<?=$exv?>?id=<?=$d[id]?>&propertyref=<?=urlencode($d[propertyref])?>'" value='For Enquiry'  src="<?=$pre?>images/forenquiry.gif" title="Link To Enquiry Page" alt="Link To Enquiry page." align="left">");
 
  }
 
	else
 
  {
 
 
   echo ("<input type="image" onClick="javascript:window.location.href='<?=$pre?>enquiry<?=$exv?>?id=<?=$d[id]?>&propertyref=<?=urlencode($d[propertyref])?>'" value='For Enquiry'  src="<?=$pre?>images/forenquiry.gif" title="Link To Enquiry Page" alt="Link To Enquiry page." align="left">
 
 
 
<input type="image" "javascript:void(0)"
onclick="window.open('<?=$pre?>avail<?=$exv?>?propertyref=<?=urlencode($d[propertyref])?>',
'Calendar','width=270,height=400')" src="<?=$pre?>images/availability.gif" title="Link To Availability Calendar. Link opens in new window" alt="Link To Availability Calendar. Link opens in new window" align="right">");		
 
 
 
  }
 
 
?>

Regards

C