function reachBottom() {
var scrollTop = 0;
var clientHeight = 0;
var scrollHeight = 0;
if ( && ) {
scrollTop = ;
} else if () {
scrollTop = ;
}
if ( && ) {
clientHeight = ( < ) ? : ;
} else {
clientHeight = ( > ) ? : ;
}
scrollHeight = (, );
if (scrollTop + clientHeight == scrollHeight) {
return true;
} else {
return false;
}
}