<?php
$PageSecurity = 11;
include('includes/session.inc');
include('includes/function_lib.php');
//echo "test";
if(isset($_GET['site']))
{ 
	$type=ucwords($_GET['site']);
	$sql='select pre_address1,pre_address2,pre_address3 from clientmaster where id='.$type;
	$result = DB_query($sql,$db);
	$myrow=DB_Fetch_array($result);
	if(!empty($myrow)){ ?>
         	<textarea name="party_address" rows="2" cols="15" style="width:180px;" readonly="readonly"><?php echo $myrow['pre_address1'].' '.$myrow['pre_address2'].' '.$myrow['pre_address3']; ?></textarea>
             	
<?php	}else{ ?>
          	<textarea name="party_address" rows="3" cols="15" style="width:220px;" ></textarea>
	<?php } } ?>

