
function framesCheck(check, currentURL) {
  if ( check != 1 ) return false;

	if( ! ( top.index2 ) ) {
    top.location.replace( '../index_mainframe.php?mainframe='+currentURL );
  }
}
