5 function make it just one

:?) Happy New Year ::: 2004 :::: :?)

hi guys…
if i have 5 function and i want to make them in just one… the difference between them just in the name of the movie clip…
here Exp. for 3 :
[AS]
function homeClickreturn() {
if (_root.mc_apLink1._currentframe == 10) {
_root.mc_apLink1.play();
}
}
function homeClickreturn2() {
if (_root.mc_apLink2._currentframe == 10) {
_root.mc_apLink2.play();
}
if (_root.mc_apmain2._currentframe == 5) {
_root.mc_apmain2.play();
}
}
function homeClickreturn3() {
if (_root.mc_apLink3._currentframe == 10) {
_root.mc_apLink3.play();
}
if (_root.mc_apmain3._currentframe == 5) {
_root.mc_apmain3.play();
}
}[/AS]
thanx