이바요 and 야 , both are used when you are calling somebody,
but, 이바요 is a bit more polite than 야.
야 is used only between friends or you can use it to someone lower than you.
but actually i would use 저기요 to call somebody.
저기요 is more formal way to call somebody that you dont know.