<?php

      include("../include/session.php"); 
    
	 $_SESSION['job_no']="";
	 	 
	 $_SESSION['job_no']=$_GET['job_no'];
	 $_SESSION['name']="";
	 $_SESSION['list2']=0;
	 
	 $_SESSION['S5_length']="";
	 $_SESSION['S5_width']="";
	 $_SESSION['S7_length']="";
	 $_SESSION['plate_area']="";
	 
	 $_SESSION['error2']='';
	 $_SESSION['alert_message']='';
	 $_SESSION['error3']='';
	 $_SESSION['error6']='';
	 
	 $_SESSION['line_no_2']='';
	 
	 $table_name = $_SESSION['db_prefix']."_trusses_temp";
	 $delete_query = "DELETE FROM $table_name WHERE user =  '".$_SESSION['username']."' "; 
	 execsql($delete_query);
	 
	 $table_name = $_SESSION['db_prefix']."_cutting_temp";
	 $delete2_query = "DELETE FROM $table_name WHERE user =  '".$_SESSION['username']."' "; 
	 execsql($delete2_query);
	 
	 $table_name = $_SESSION['db_prefix']."_plates_temp";
	 $delete3_query = "DELETE FROM $table_name WHERE user =  '".$_SESSION['username']."' "; 
	 execsql($delete3_query);
	 
	 	 
	   
	 $_SESSION['p'] = 1;
	 $_SESSION['error']='5';
	 $_SESSION['error2']=0;
	 $_SESSION['message']='';
	 $_SESSION['page_view']='0';
	 $_SESSION['page_stage']='0';
	 $_SESSION['file_name']='';
	 $_SESSION['check']=0;
	 $_SESSION['add_truss']=0;
     
?>
<script language="javascript" type="text/javascript">
        <!--
		  window.location="trussesJobWizbase.php?error=0&p=1&s=0";
        -->
       </script>