$myBasePath =$_SERVER['PHP_SELF'];
//echo "path=".$myBasePath;
$foundpos = strrpos ($myBasePath, "/");
//echo "
found =".$foundpos;
$tmppage = "".substr($myBasePath, $foundpos+1);
$tmppage=str_replace('.php','',$tmppage);
//echo "
found =".$tmppage;
if($_SERVER['QUERY_STRING']!=""){
// $tmppage.="?".$_SERVER['QUERY_STRING'];
}
$bannertype=$tmppage;
?>