输入banner图图片脚本导航/分类

自个儿写了一个跳转函数一直在报错

自己写了一个跳转函数一直在报错
/**
* ShowMsg()返回信息定向函数
*/
function ShowMsg($_info,$_url)
If $_url="" Then
echo ""
Else
If $_info="" Then
header('Location:'.$_url);
else
echo "";
End If
End If


?>

------解决方案--------------------
function ShowMsg($_info,$_url){
If ($_url=="" ){
echo "";
}Else{
If ($_info=="")
header('Location:'.$_url);
else
echo "";

}
}