include("main/function/db.php");
session_start();
$pop_show="";
$today=date("Y-m-d");
$_SESSION["chk_cookies"]="ok";
$sql="select * from news where data_open=1 and data_push=1 and data_startdate<='".$today."' and (data_enddate>='".$today."' or data_enddate='0000-00-00' or data_enddate IS NULL)";
$act=mysql_query($sql,$db);
if($show=mysql_fetch_array($act)){
$pop_show="window.open('pop.php','shownews','scrollbars=yes,resizable=yes,width=520,height=300');";
}
?>