$sqldoc="select * from document1,document2 where ct_code='$cont' and status = '2' AND date >= '".date("$yearchk-12-16 00:00:00")."' AND date <= '".date("$yearchk-12-31 00:00:00")."' order by id asc ";
$sqldoc = "select * from document1,document2 where ct_code='$cont' AND status = '2' AND date BETWEEN (('$yearchk-12-16 00:00:00') AND ('$yearchk-12-31 00:00:00')) order by id asc ";